MathWorks interview question

Questions on pointers, calloc,malloc were tough