Pregunta de entrevista de Elite Mindz

What is factory pattern and singleton pattern?