Intuit interview question

Write a sample code to create possibility of dead lock situation.