Axon Interview Question

Checking a palindrome with some twist