← Coding round practice

Reverse a String

EasyStrings

The problem

Reverse the characters of a given string.

Sample input

hello

Sample output

olleh
Show the solution · 8 languages
fun main() {
    println("hello".reversed())
}