Cognizant interview question

2-3 Basic Programming questions like - Palindrome,Fibonacci,LeapYear