DXC Technology interview question

Explain how your solution is able to achieve x