Domanda di colloquio di Google

Two LeetCode medium questions, both focused on arrays.