Pregunta de entrevista de Cognizant

They asked Nested loop question