The Trade Desk interview question

How would you add multi-threading to this program?