Nickelodeon Interview Question

How do malloc and free memory works?