Find Sequence of Integers in Another Array

You are given an array of integers and a shorter array containing a sequence of integers as arguments. Return true if the sequence of integers can be found in the first array.

Requirements

  • Must return either true or false

Example #1

solve([1, 2, 3, 4, 5, 6], [3, 4, 5])
> true

Example #2

solve([1, 2, 3, 4, 5, 6], [3, 5])
> false

Example #3

solve([1, 3, 5, 7], [3, 5])
> true