Quorum Interview Question

I was given a basic palindrome question.