Morgan Stanley Interview Question

code review of a multi-threading program