str : Stores input string n : Length of str . curr : Stores current permutation index : Index in current permutation , curr
static void printSubSeqRec ( String str , int n , int index , String curr ) {