Aspire Systems interview question

Coding reversing some code without using inbuilt functions