Implement the Singleton design pattern to ensure a class has only one instance and provides a global point of access to it.
Asked in frontend interviews at Google, Amazon and Microsoft