Pergunta de entrevista da empresa UnifyApps

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