HCL interview question

Data Structure