Finish Palindrome algo with O(n) Complexity