Patching Array Leetcode Solution 8624 Thousand