Tradeweb Interview Question

How to write a Singleton program