comefrom: <gouthampradhan>array_MaximumSwap_1.java
code: public int maximumSwap(int num) {
      int[] D = new int[10];
      char[] A = String.valueOf(num).toCharArray();
      for (int i = 0; i < A.length; i++) {
        D[A[i] - '0'] = i;
      }
      boolean found = false;
      for (int i = 0; i < A.length; i++) {
        int digit = A[i] - '0';
        for (int j = 9; j > digit; j--) {
          if (D[j] > i) {
            char temp = A[i];
            A[i] = (char) (j + '0');
            A[D[j]] = temp;
            found = true;
            break;
          }
        }
        if (found) break;
      }
      return Integer.parseInt(String.valueOf(A));
    }
masked: public int sample_funcname ( int var_0 ) {
    int [ ] var_1 = new int [ 10 ] ;
    char [ ] var_2 = String . valueOf ( var_0 ) . toCharArray ( ) ;
    for ( int var_3 = 0 ;
    var_3 < var_2 . length ;
    var_3 ++ ) {
      var_1 [ var_2 [ var_3 ] - '0' ] = var_3 ;
    }
    boolean var_7 = false ;
    for ( int var_3 = 0 ;
    var_3 < var_2 . length ;
    var_3 ++ ) {
      int var_4 = var_2 [ var_3 ] - '0' ;
      for ( int var_5 = 9 ;
      var_5 > var_4 ;
      var_5 -- ) {
        if ( var_1 [ var_5 ] > var_3 ) {
          char var_6 = var_2 [ var_3 ] ;
          var_2 [ var_3 ] = ( char ) ( var_5 + '0' ) ;
          var_2 [ var_1 [ var_5 ] ] = var_6 ;
          var_7 = true ;
          break ;
        }
      }
      if ( var_7 ) break ;
    }
    return Integer . parseInt ( String . valueOf ( var_2 ) ) ;
  }
  