UBS interview question

Questions about multithreading Questions about logical problems