Subarrays Matching Pattern

Company: Autodesk_10april

Difficulty: medium