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

Given an integer number n, return the difference between the product of its digits and the sum of its digits.
 
Please complete the following python code precisely:
```python
class Solution:
    def subtractProductAndSum(self, n: int) -> int:
```