check for palindrome
Ex: dad, madam, refer, radar, etc.
Check