need to return an array in which each element of it corresponds to product of all the element in the given array except the one corresponding to the returned array element
meaning for nums[1,2,3,4] we can just return answer(24,12,8,6) and you know wht we are talking about from this
Very straightforward here is using two nested loops where we let the inner loop multiply all the numbers except when it matches the outer loop. Psuedocode
answer = vector
return answer;