Revolut interview question

Take a look on a code and fix all the possible issues with multithreading