drop each character of the substring and recur to generate all subsequence of the substring
for ( int k = 1 ; k < str_sub . Length - 1 ; k ++ ) { StringBuilder sb = new StringBuilder ( str_sub ) ; sb . Remove ( k , 1 ) ; subsequence ( sb . ToString ( ) ) ; } } } } } }