SentinelOne Interview Question

A multithreading question about performing tasks in order using a binary semaphore.