selects 4 characters from encoded string at a time . find the position of each encoded character in char_set and stores in num .
for ( i = 0 ; i < len_str ; i += 4 ) { num = 0 , count_bits = 0 ; for ( j = 0 ; j < 4 ; j ++ ) {