Guidewire interview question

How would you implement a singleton pattern?