LinkedIn interview question

Simulate a deadlock situation in your code.