Perfect Subarrays

Company: Myntra_20sep

Difficulty: medium