JetBrains Interview Question

How would you implement a singleton pattern in Java?