Pregunta de entrevista de Arm

Spot the errors in a given C program (consisted of memory leaks and buffer overflows)