Check near-palindrome with one deletion | Meta Interview Question