Pregunta de entrevista de Cognizant

Deference between for loop and while loop