Company: Move_in_sync_20nov
Difficulty: medium
Problem Description You are tuning a chain of amplifier stages represented by an integer array nums, where each entry is the gain multiplier applied at that stage. Some stages weaken the sound (negative multipliers), and others cut it out entirely (zero multipliers). Your task is to find the run of consecutive stages (a subarray) whose combined multiplication produces the loudest possible output. In other words, find the contiguous subarray within nums whose elements, multiplied together, give the largest product. Function Description You need to implement the function maxSignal. The function should take an integer array nums and return the largest product obtainable from any contiguous subarray within it. Parameters nums (List[int]): A list of integers where nums[i] represents the gain multiplier of the i-th stage. Return An integer representing the largest product of any contiguous subarray within the array. Input Format The first line contains a single integer N, denoting the number