Amazon Interview Question

Code for string Palindrome in O(n)