Citadel interview question

2 medium coding problems for 70 minutes