Pernix Solutions interview question

Logical problem with java languaje