Aspire Systems Interview Question

they asked to reverse given number