Python Easiest Solution!!!
\n\n# Code\npy\nclass Solution:\n    def subtractProductAndSum(self, n: int) -> int:\n        l1 = [int(i) for i in str(n)]\n        product = 1\n        sum1 =
\n\n# Code\n```py\nclass Solution:\n    def subtractProductAndSum(self, n: int) -> int:\n        l1 = [int(i) for i in str(n)]\n        product = 1\n        sum1 = 0\n        for i in l1:\n            product *= i\n            sum1 += i\n        return product-sum1\n\n```
['Python3']