Guidewire Interview Question

How would you implement a singleton pattern?