simple python solution
```\n def maxProduct(self, nums: List[int]) -> int:\n        nums.sort()\n        return (nums[-1]-1)*(nums[-2]-1)
```\n def maxProduct(self, nums: List[int]) -> int:\n        nums.sort()\n        return (nums[-1]-1)*(nums[-2]-1)
[]