Pergunta de entrevista da empresa Microsoft

Implement a module for storing and forwarding network packets. The module should drop a new packet if there isn't enough memory (i.e. buffer is full).