Pregunta de entrevista de Cambium Networks

How did you solve the subset problem?