Bloomberg Interview Question

It was to find the bug in the given code