Sponsored
Use these hints if you're stuck. Try solving on your own first.
Iterate over all indices <code>i</code> then, using a second loop, check if the subarray starting at index <code>i</code> matches the pattern.
Solve with full IDE support and test cases