Cognizant Interview Question

Factorial of a number, palindrome, reverse a string and all basic 1st year programs