Bloomberg interview question

Write an algorithm for a palindrome check