JAVA Solution Explained in HINDI
https://youtu.be/4BXBsrpglNk\n\nFor explanation, watch the above video and do like, share and subscribe the channel. \u2764\uFE0F\n# Code\n\nclass Solution {\n 
https://youtu.be/4BXBsrpglNk\n\nFor explanation, watch the above video and do like, share and subscribe the channel. \u2764\uFE0F\n# Code\n```\nclass Solution {\n    public int maxProduct(int[] nums) {\n        \n        Arrays.sort(nums);\n        int x = nums[nums.length - 1];\n        int y = nums[nums.length - 2];\n\n        return (x - 1) * ( y - 1);\n    }\n}\n```
['Java']