MSD interview question

How would you debug this code?