title: C - Design your own free( ) function
body: <p>Today, I appeared for an interview and the interviewer asked me this, </p>
  
  <blockquote>
    <ol>
    <li>Tell me the <strong>steps</strong> how will you design your own <code>free( )</code> function for
    deallocate the allocated memory.        </li>
    <li>How can it be more efficient than C's default <code>free()</code> function ? What can you conclude ?</li>
    </ol>
  </blockquote>
  
  <p>I was confused, couldn't think of the way to design. </p>
  
  <p>What do you think guys ?</p>
  
  <hr>
  
  <p><strong>EDIT :</strong> Since we need to know about how <code>malloc()</code> works, can you tell me the steps to write our own <code>malloc()</code> function</p>