amazon all problems solved
spiral printing. o(n) longest palindrome