Pergunta de entrevista da empresa Palo Alto Networks

leetcode medium based array question