HCLTech Interview Question

Oops concepts and was asked to write code for data structures concepts