Catchpoint interview question

Write singleton design pattern