Pregunta de entrevista de Amazon

Tell me about design patterns such as a Factory or Singleton.