Reverse a List

Write a function that takes a list of integers and returns a new list with the elements in reverse order.

fun main() { val list = listOf(0, 1, 2, 3, 4, 5) println(reversedList(list)) } fun reversedList(input: List<Int>): List<Int> { // Your code goes here }