Citadel interview question

Reservoir sampling