Tradeweb interview question

How to write a Singleton program