Pergunta de entrevista da empresa RBC

Implement a thread class and include loop