Cognizant Interview Question

Basic code like Palindrome and binary search