Two Sigma Interview Question

Some problems related to conditional probability and optimization.