RBC Interview Question

Implement a thread class and include loop