Leetcode sign up. Let product be the product of all values in the array nums.