Pergunta de entrevista da empresa Bizongo

Two pointer based leetcode question.