Pergunta de entrevista da empresa Equifax

Questions about structures in Java, situational problem.