Capgemini interview question

palindrome and string level questions