Everpure interview question

Concurrency and Multithreading, Lock.