Totality Corp interview question

How singleton design pattern works