Java sort, 3 lines
\npublic int maximumProduct(int[] a) {\n        Arrays.sort(a);\n        int len = a.length;\n        return Math.max(a[0] * a[1] * a[len-1], a[len-1] * a[len-2
```\npublic int maximumProduct(int[] a) {\n        Arrays.sort(a);\n        int len = a.length;\n        return Math.max(a[0] * a[1] * a[len-1], a[len-1] * a[len-2] * a[len-3]);\n\n    }\n```
[]