Pregunta de entrevista de Thermo Fisher Scientific

Leetcode easy, with efficiency explanation.