Cisco interview question

implement the free func of that malloc