Domanda di colloquio di DXC Technology

A leetcode easy question on two pointers.