Two Sigma interview question

Implement malloc using array implementation