IMC Trading interview question

java multithreading and to indentify mistakes in the code