Infosys interview question

pallindrome question for the technical round