Validate normalized palindromes with variants | xAI Interview Question