kotlin-coding-challenges

Chunk

Instructions

Reverse the given list. Don’t use list.reversed() method.

Challenge Solution

Examples

reverse(["a", "b"]) // ["b", "a"]

reverse(["a", "b", "c"]) // ["c", "b", "a"]