Pregunta de entrevista de Tata Consultancy Services

Reverse a number coding question.