JPMorganChase interview question

How do you solve deadlock ?