330 Patching Array Leetcode Solution