Cognizant interview question

asked about loops and mvc from java