Given an example array of [-7, 8, -3, 4, -2, -7, 7]
, find the highest product that any of three of those numbers may yield.
Related question for solution of the same problem in Python, that did not get an answer with code: Finding highest product of three numbers.
For the example array provided in the first paragraph, expected result is 392
.