This function recursively prints the subset corresponding to the binary representation of num . nthBit -- > nth bit from right side starting from n and decreases until 0
void subset ( int nthBit , int num , int numOfBits ) { if ( nthBit >= 0 ) {