Pergunta de entrevista da empresa Illumina

Explain how for and while loops work, and when you might use one over another