UKG interview question

Singleton Pattern implementation and how to make it thread-safe ?