Ab Initio Interview Question

Implement a system for sending and receiving simple binary messages.