UBS interview question

Create Singleton class in Java