Reverse a String
EasyStrings
The problem
Reverse the characters of a given string.
Sample input
hello
Sample output
ollehShow the solution · 8 languages
fun main() {
println("hello".reversed())
}Reverse the characters of a given string.
hello
ollehfun main() {
println("hello".reversed())
}