MAERSK interview question

write a Singleton class