@mithun3. The idea is to store product of numbers at the left side to A and product of numbers at right side to B.
i.e. A[i] = nums * nums ... * nums[i-1]; B[i] = nums[N] * nums[N-1] ... * nums[i+1];
As you can plainly see, Result[i] = A[i] * B[i]