Trax Retail interview question

Implement a thread-safe singleton pattern