DXC Technology interview question

Generics