Intel Corporation interview question

implement malloc functionality on C language