WorldQuant interview question

probability part