Palindrome Using Lambda Function Python