CoStar Group interview question

Write out the pseudocode and explain the code for a palindrome