get input file and find longest palindrome in it.