Pregunta de entrevista de Salescode.ai

Longest Subarray Containing at Most Two Distinct Elements