Saved from https://app.codility.com/demo/results/trainingFMMFE6-4SD/
# you can write to stdout for debugging purposes, e.g. # print("this is a debug message") def solution(A): # write your code in Python 3.6 A.sort() return max(A[0] * A[1] * A[2], A[-1] * A[-2] * A[-3], A[-1] * A[0] * A[1])