TikTok Interview Question

Atomic operations with C++ std::thread