Question d’entretien chez Klarna

How would you solve this concurrency problem.