Sponsored
Use these hints if you're stuck. Try solving on your own first.
The constraints on nums.length are small. It is possible to check every subarray.
To calculate GCD, you can use a built-in function or the Euclidean Algorithm.
Solve with full IDE support and test cases