Patching Array Leetcode Solution 1943 Half Dollar