DXC Technology Interview Question

Describe the thinking process