Pregunta de entrevista de RBC

Implement a thread class and include loop