Cruise interview question

Code a custom malloc and free function