DXC Technology interview question

Data structures concepts