LSI interview question

implement malloc without using any system call.