Simple solution and easy you understand
\n//This is Java \nclass Solution {\n    public int maxProductDifference(int[] nums) {\n        Arrays.sort(nums);\n        \n        int left = nums[0] * nums[
```\n//This is Java \nclass Solution {\n    public int maxProductDifference(int[] nums) {\n        Arrays.sort(nums);\n        \n        int left = nums[0] * nums[1];\n        int rigth = nums[nums.length-1] * nums[nums.length-2];\n        \n        int res = rigth - left;\n        \n        return res;\n    }\n}\n\n//This is Golang\nfunc maxProductDifference(nums []int) int {\n    sort.Ints(nums)\n    \n    left := nums[0] * nums[1]\n    rigth := nums[len(nums)-1] * nums[len(nums)-2]\n    \n    res := rigth - left\n    \n    return res\n}\n```
['Java', 'Go']