Solved MaxProductOfThree in C