Pergunta de entrevista da empresa UKG

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