@aritra90tnp @xcv58 Thanks for the discussion! I visualized the idea of the solution. Hopefully it'll provide more clarity.

/*
* nums = [1, 2, 3, 4]
* output = product of nums[left of i] * product of nums[right of i]
*/
output = [
24, // left: init=1 nums[i]=1 right: 2 * 3 * 4
12, // left: 1 nums[i]=2 right: 3 * 4
8, // left: 1 * 2 nums[i]=3 right: 4
6, // left: 1 * 2 * 3 nums[i]=4 right: init=1
]