Domanda di colloquio di HighRadius

What is singleton and factory pattern