Python | Sorting
\nclass Solution:\n    def maxArea(self, h: int, w: int, horizontalCuts: List[int], verticalCuts: List[int]) -> int:\n        MOD_CONST = (10**9) + 7\n        d
```\nclass Solution:\n    def maxArea(self, h: int, w: int, horizontalCuts: List[int], verticalCuts: List[int]) -> int:\n        MOD_CONST = (10**9) + 7\n        def getMaxDiffInArr(arr):\n            """Get difference"""\n            n  = len(arr)\n            max_diff = -math.inf\n\n            for index in range(1,n):\n                diff = arr[index]-arr[index-1]\n                max_diff = max(max_diff, diff)\n\n            return max_diff \n\n        horizontalCuts += [0, h]\n        verticalCuts   += [0, w]\n        \n        horizontalCuts.sort()\n        verticalCuts.sort()\n        \n        product = getMaxDiffInArr(horizontalCuts)*getMaxDiffInArr(verticalCuts)\n\t\t\n        return product%MOD_CONST\n```
[]