SpanIdea interview question

Mutex semaphore