Infosys Interview Question

Design pattern