Infosys Interview Question

Example with code of a singleton design pattern