Bloomberg Interview Question

Given Java code, why does it not execute as it should