Domanda di colloquio di Tech Mahindra

Write program for singleton pattern and explain?