Pergunta de entrevista da empresa DPL

What is singleton pattern? how to handle deadlock problem in singleton?