OrangeHRM interview question

What are the design patterns? Why we use them.