Talent500 interview question

coding: write a function to reverse a number in js