Microsoft interview question

Reverse a number which is in string format