Apple Interview Question

Implement a message passing architecture given nodes that have a `recieveRight, recieveLeft, sendRight, sendLeft` methods