Sollicitatievraag bij EarnIn

How would you implement a mutex from scratch?