WITS interview question

Blocking queue implementation