HCLTech Interview Question

design patterns ,optimization