PwC Interview Question

Multithreading question