CQSE interview question

Check if subarray exists in an array.