NTT DATA interview question

Code the singleton design pattern