Pregunta de entrevista de JPMorganChase

Very role specific problem and solution