Minimize Maximum Of Array Leetcode Problems Python