Initial solution to longest_palindrome.rs