Pergunta de entrevista da empresa Paytm

What are Design Patterns? Explain Observer pattern?