Add solution for UVA problem 401 Palindromes