Solve palindrome chain length kata.