Tricky Subarrays

Company: Google_8nov

Difficulty: medium