Pregunta de entrevista de FDM Group

Difference between for and while loop?