Citadel Interview Question

Probability Question + Recursion Problem