Find Min Diff Leetcode Problems Python