Implement M/M/1 Queue in C++