WD Interview Question

2 CPUs, 2 Devices, connected by a bus. Write a function to deliver cpu message to correct device