Capgemini Interview Question

palindrome and string level questions