Pergunta de entrevista da empresa Jefferies

Array manipulation, SQL aggregate functions, probability