WorldQuant interview question

Probability, algorithm