Citadel interview question

ants on a string