4 Lines of Python code
```\nclass Solution:\n    def maximumProduct(self, nums: List[int]) -> int:\n        nums.sort()\n        l1 = nums[-1]nums[-2]nums[-3]\n        l2 = nums[0]num
```\nclass Solution:\n    def maximumProduct(self, nums: List[int]) -> int:\n        nums.sort()\n        l1 = nums[-1]*nums[-2]*nums[-3]\n        l2 = nums[0]*nums[1]*nums[-1]\n        return max(l1,l2)
['Python', 'Python3']