Valeo interview question

reverse a number