Sovrn interview question

Code singleton class and it should be thread safe.