Pregunta de entrevista de Amazon

Explain Factory method and singleton design