Citadel Interview Question

2 medium coding problems for 70 minutes