GlobalLogic interview question

Reverse the number ,string and Oops question