Q2 Software interview question

implement palindrome , write code for that