IMC Trading Interview Question

java multithreading and to indentify mistakes in the code