NetApp interview question

implement malloc