Motorola Solutions Interview Question

Implement a "ping-pong" function using threads.