Acturis interview question

Where are the bugs in this code?