Python3 Solution
\n\nclass Solution:\n    def maxProductDifference(self, nums: List[int]) -> int:\n        nums.sort()\n        return (nums[-1]*nums[-2])-(nums[0]*nums[1])\n
\n```\nclass Solution:\n    def maxProductDifference(self, nums: List[int]) -> int:\n        nums.sort()\n        return (nums[-1]*nums[-2])-(nums[0]*nums[1])\n```
['Python', 'Python3']