Pergunta de entrevista da empresa Siemens Digital Industries Software

What is singleton pattern? write the code.