Applied Intuition Interview Question

Implement a function to handle network packets defined by different bits in a 32-bit integer