Kotlin algorithm to reverse a given string

join shbcf.ru