Bloomberg interview question

Reverse Integer