Bloomberg Interview Question

compliler optimization of the code