Pergunta de entrevista da empresa Oracle

Problem related to memory allocation in C