FactSet Interview Question

Find bugs in the code and fix them. optimize code where you can. introduce multi threading into the program