Infosys Interview Question

pallindrome question for the technical round