Q2 Software Interview Question

implement palindrome , write code for that