RBC interview question

Multithreading with an example