Patching Array Leetcode Solution Python Pdf Library