Domanda di colloquio di Amazon

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