Revolut Interview Question

Java concurrency mechanisms for moving money between accounts in memory. And using DBMS.