Exioms Interview Question

WAP for Reverse number