Pregunta de entrevista de Guidewire

How would you implement a singleton pattern?