Pregunta de entrevista de Bombora

Take home: basic programming question.