Frage im Vorstellungsgespräch bei Revolut

Write some concurrent code. How could we implement this using Java concurrency mechanisms? Using database locking mechanisms? What if we change transaction isolation level? What are the benefits and the downsides of each approach?