Simplaex interview question

Basic multithreading concepts.