Pregunta de entrevista de The Trade Desk

How would you add multi-threading to this program?