Product of Array Except Self

Given an integer array nums, return a new array answer where answer[i] is the product of every number in nums except nums[i].

You may not use division. The target is to compute each position by combining the values on the left side and the values on the right side of that index.

Examples
Input: [1,2,3,4]
Output: [24,12,8,6]
Hints
Related Problems

Product of Array Except Self

Given an integer array `nums`, return a new array `answer` where `answer[i]` is the product of every number in `nums` except `nums[i]`.