IBM interview question

Asked some questions on basic thread safety