Consider our input integer array: [10, 20, 30, 40] . We can approach the solution as follows: For the 0th (first) element: We calculate the product of all numbers except the one at index 0. Thus, 20 30 40 equals 24000. Next, for the 1st (second) element: We take the product of all numbers except the one at index 1. This gives us 10 30 40, which equals 12000. Then, for the 2nd (third) element: We multiply all numbers except the one at index 2, resulting in 10 20 40, which equals 8000. Finally, for the 3rd (fourth) element: We compute the product of all numbers except the one at index 3, leading to 10 20 30, which equals 6000. Therefore, the expected output is [24000, 12000, 8000, 6000] .