Solution to MaxProductOfThree