Two Sigma interview question

the second interview asks to implement a memory allocator the third two interviews is about algorithms