Bloomberg Interview Question

Write an algorithm for a palindrome check