EY interview question

Write a program to reverse a string or a number?