comefrom: <awangdev>Space Replacement_1.java
code: public int replaceBlank(char[] string, int length) {
      	if (string == null || string.length == 0) {
      		return 0;
      	}
      	int count = 0;
      	for (char c : string) {
      		if (c == ' ') {
      			count += 2;
      		}
      	}
      	int lastIndex = length + count - 1;
      	for (int i = length - 1; i >= 0; i--) {
      		if (string[i] == ' ') {
  				string[lastIndex--] = '0';
  				string[lastIndex--] = '2';
  				string[lastIndex--] = '%';
      		} else {
      			string[lastIndex--] = string[i];
      		}
      	}
      	return length + count;
      }
masked: public int sample_funcname ( char [ ] var_0 , int length ) {
    if ( var_0 == null || var_0 . length == 0 ) {
      return 0 ;
    }
    int var_4 = 0 ;
    for ( char var_5 : var_0 ) {
      if ( var_5 == ' ' ) {
        var_4 += 2 ;
      }
    }
    int var_9 = length + var_4 - 1 ;
    for ( int var_10 = length - 1 ;
    var_10 >= 0 ;
    var_10 -- ) {
      if ( var_0 [ var_10 ] == ' ' ) {
        var_0 [ var_9 -- ] = '0' ;
        var_0 [ var_9 -- ] = '2' ;
        var_0 [ var_9 -- ] = '%' ;
      }
      else {
        var_0 [ var_9 -- ] = var_0 [ var_10 ] ;
      }
    }
    return length + var_4 ;
  }
  