Aspire Systems interview question

they asked to reverse given number