Jump Trading interview question

implement malloc