Domanda di colloquio di Bizongo

Two pointer based leetcode question.