HCLTech interview question

Mostly on data structures and oops concepts