str : Stores input string n : Length of str . curr : Stores current permutation index : Index in current permutation , curr
void printSubSeqRec ( string str , int n , int index = -1 , string curr = " " ) {