Pregunta de entrevista de Evans & Sutherland

Easy- medium leet code dsa question was asked.