the solution of the MaxProductOfThree