ex24: Function that checks wether one list contains another as a subsequence