Question d’entretien chez Tech Mahindra

Write program for singleton pattern and explain?