Pregunta de entrevista de Thoughtworks

Choose one requirement and code.