Leetcode 3034. Number of Subarrays That Match a Pattern I | Hello Interview