GammaStack Interview Question

reverse a number using maths