Create distinctSubsquence