HCLTech interview question

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