StreamNet interview question

question with pointer with use of memory management