Max Product Of Three
Problem A non-empty array A consisting of N integers is given. The product of triplet (P, Q, R) equates to AP _ AQ _ AR (0 ≤ P < Q < R < N). For example, array A such that: contains the following example triplets: (0, 1, 2), product is −3 _ 1 _ 2 = −6 (1, 2, 4), product is 1 _ 2 _ 5 = 10 (2, 4,…