JPMorganChase interview question

Simple coding exercise like find if string is a palindrome.