Javascript Check If Array Contains Subarray Leetcode Problem Of The Day