Amazon Interview Question

Explain Factory method and singleton design