Integer Replacement Leetcode Python Problems Practice