Domanda di colloquio di UnifyApps

Given an integer array nums, find a subarray that has the largest product, and return the product.