Implement `productExceptSelf(nums)` that returns an array `out` where `out[i]` is the product of every element of `nums` except `nums[i]`. Solve it in O(n) time **without using division**.
+ 2 hidden tests run on Submit.
The product of all-but-i equals (product of everything left of i) times (product of everything right of i). One forward pass fills the left products into the result, and one backward pass multiplies in the right products using a running accumulator. O(n) time, O(1) extra space.
Run your code to see results.