Pregunta de entrevista de Bloomberg

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