added implementation for MaxProductOfThree