Amdocs Interview Question

Write code for reverse number