Cognizant interview question

They asked Nested loop question