Citadel Interview Question

Two probability question and one algorithm question