Pregunta de entrevista de Jefferies

Array manipulation, SQL aggregate functions, probability