Simple solution in python using sort
\n\n# Code\n\nclass Solution:\n    def maximumProduct(self, A: List[int]) -> int:\n        A.sort()\n        return max(A[0]*A[1]*A[-1], A[-1]*A[-2]*A[-3])\n
\n\n# Code\n```\nclass Solution:\n    def maximumProduct(self, A: List[int]) -> int:\n        A.sort()\n        return max(A[0]*A[1]*A[-1], A[-1]*A[-2]*A[-3])\n```
['Python3']