Capgemini interview question

singleton class etc. simple core java