Fiserv interview question

Write a singleton class.