Novaris interview question

write the pseudocode to reverse a number