Invesco Interview Question

Gave a code snippet and asked whats wrong in the code.