Implement concurrent structures and debug queue code | Microsoft Interview Question