Pregunta de entrevista de CGI

Nothing very difficult. Just Java concepts.