UBS interview question

Multi threading in Java