Perpetual Block interview question

What is design pattern and its types?