Create distinctSubsequence