DXC Technology interview question

Describe the thinking process