Pergunta de entrevista da empresa Pernix Solutions

Logical problem with java languaje