Bloomberg interview question

Pointers based question with pre-written code - "Why doesn't this code work"