Skillz interview question

Q: Implement DispatchSemaphore in a given scenario.