HCLTech Interview Question

Oops ques, solid principle, design pattern, puzzle