Microsoft Interview Question

Implement a lock.