Staples Interview Question

Thread lock in Java