Implementation of hasSubsequence in List
Stream for FPiS