Sapiens Interview Question

Java question was to write a function that the input is 3 numbers, and the output should be the highest value you can get when using the '*' and '+' operators between the numbers