Exterro interview question

A reverse of number string .