McKesson Interview Question

Briefly describe singleton and factory design pattern