Intel Corporation Interview Question

implement malloc functionality on C language