Circular wait in nested locks

Code reviewMedium25 minGoldman Sachs and JPMorgan Chase style

Your task

Review this Java account-transfer routine.

What is the concurrency hazard, and how is it triggered?