Added palindrome.
Added logic.
Added print statements.