Create extend-to-palindrome.java