Pergunta de entrevista da empresa ST Electronics (Singapore)

How to apply multithreading to the code?