Pregunta de entrevista de Medtronic

How did you go about solving this problem?