Nagarro interview question

Design patterns