Expedia Group interview question

from dsa Maximum product subarray was asked