Question d’entretien chez Morgan Stanley

What is Singlton and Factory pattern?