Citadel interview question

Two probability question and one algorithm question