Oracle interview question

Problem related to memory allocation in C