Please solve the programming task below using a self-contained code snippet in a markdown code block.

Given the array of integers nums, you will choose two different indices i and j of that array. Return the maximum value of (nums[i]-1)*(nums[j]-1).
 
Please complete the following python code precisely:
```python
class Solution:
    def maxProduct(self, nums: List[int]) -> int:
```