Domanda di colloquio di The Trade Desk

How would you add multi-threading to this program?