HARMAN interview question

Implement a singleton class in a thread safe manner.