Rosetta Problems

Number of Subarrays That Match a Pattern I

https://leetcode.com/problems/number-of-subarrays-that-match-a-pattern-i