Tableau Software interview question

Implement malloc (not free) using some given function pagemalloc