Pregunta de entrevista de Bizongo

Two pointer based leetcode question.