MSCI Interview Question

Add concurrency mamagement to the existing code