GlobalLogic Interview Question

singleton class and how to prevent from multi threading and cloning