DXC Technology Interview Question

Explain how your solution is able to achieve x