Determine sanitized palindrome in string | LinkedIn Interview Question