GlobalLogic Interview Question

C++, Multithreading, data structure questions