Reverse me if you can

Report a typo

Write a function named reverse that reverses a given Int value. If the given Int is null, then return -1.

Sample Input 1:

654

Sample Output 1:

456
Write a program in Kotlin
fun reverse(input: Int?): Int {
return 0
}
___

Create a free account to access the full topic