Leetcode Max Width W3schools Python