Added another approach to determine palindrome words