WellDev interview question

Write a recursive function to reverse a number.