kotlin-coding-challenges

Reverse string

Instructions

Given a string implement a function which returns a reversed copy of that string.

Challenge Solution

Limitations:

Don’t use Kotlin String.reverse function

Examples

reverse('apple') == 'leppa'

reverse('hello') == 'olleh'

reverse('Greetings!') == '!sgniteerG'