Tech Mahindra interview question

Singleton design pattern.