Pergunta de entrevista da empresa Apple

Finding bugs in a pointer related C program