Patching Array Leetcode Solution 1943 Half Penny