Javascript Solution that passes maxArea(1000000000, 1000000000, [2], [2]) test
\nvar maxArea = function(h, w, horizontalCuts, verticalCuts) {\n    \n    let mod = 1e9 + 7;\n    \n    horizontalCuts.sort(function(a, b) {\n        return a -
```\nvar maxArea = function(h, w, horizontalCuts, verticalCuts) {\n    \n    let mod = 1e9 + 7;\n    \n    horizontalCuts.sort(function(a, b) {\n        return a - b;\n    });\n    \n    verticalCuts.sort(function(a, b) {\n        return a - b;\n    });\n    \n    let maxHeight = verticalCuts[0];\n    let maxWidth = horizontalCuts[0]\n    \n    verticalCuts.push(w);\n    horizontalCuts.push(h);\n    \n    for (var i = 0; i < verticalCuts.length - 1; i++) {\n        if (verticalCuts[i+1] - verticalCuts[i] > maxHeight) {\n            maxHeight = verticalCuts[i+1] - verticalCuts[i];\n        }\n    }\n    for (var i = 0; i < horizontalCuts.length - 1; i++) {\n        if (horizontalCuts[i+1] - horizontalCuts[i] > maxWidth) {\n            maxWidth = horizontalCuts[i+1] - horizontalCuts[i];\n        }\n    }\n    \n    return BigInt(maxHeight) * BigInt(maxWidth) % BigInt(mod)\n}; \n```
['JavaScript']