Cognizant Interview Question

a program to reverse a number