Pergunta de entrevista da empresa Guidewire

How would you implement a singleton pattern?