Shubham interview question

Asked more about memory management