Infosys interview question

pallindrome logic