Cognizant Interview Question

asked about loops and mvc from java