J.P. Morgan interview question

Design a multi threaded queue in c++.