UVA.401: Palindrome. AC