Qualcomm interview question

white board: create a custom malloc and free function using linked lists