Pregunta de entrevista de Equifax

Questions about structures in Java, situational problem.