SAP Ariba interview question

Multithreading, Question write a dead lock in Java