Pergunta de entrevista da empresa Accenture

Basic java oops concepts. Simple for loop question