Rubetek interview question

write heap memory manager for MCU It is necessary to write a dynamic memory manager for an abstract microcontroller. Required functions: malloc (allocate memory), free (free memory) and avail (get amount of free memory). Language C/C++