Oracle Interview Question

Problem related to memory allocation in C