Make Array Beautiful Leetcode Python Problems