MongoDB interview question

reverse a number without using strings