Skip to content

Latest commit

 

History

History
22 lines (12 loc) · 356 Bytes

File metadata and controls

22 lines (12 loc) · 356 Bytes

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'