Publicis Sapient interview question

Singleton class and example and in code.