Quantbox Research interview question

How would you implement a spinlock