Question d’entretien chez EarnIn

How would you implement a mutex from scratch?