ClearBank interview question

How concurrency should be handled while updating data in db?