FloCareer interview question

volatile & atomic diff 2 level checking in singleton class