Jump Trading Interview Question

implement malloc