GammaStack interview question

reverse a number using maths