Simplify360 interview question

Multi threading in java