Subsequence And Subarray Javascript Interview