comefrom: <gouthampradhan>math_RomanToInteger_1.java
code: public int romanToInt(String s) {
      Map<Character, Integer> map = new HashMap<>();
      map.put('I', 1);
      map.put('V', 5);
      map.put('X', 10);
      map.put('L', 50);
      map.put('C', 100);
      map.put('D', 500);
      map.put('M', 1000);
      String str = new StringBuilder(s).reverse().toString();
      int sum = 0, prev = -1;
      for (int i = 0, l = str.length(); i < l; i++) {
        int curr = map.get(str.charAt(i));
        if (curr < prev) {
          sum -= curr;
        } else {
          sum += curr;
        }
        prev = curr;
      }
      return sum;
    }
masked: public int sample_funcname ( String var_1 ) {
    Map < Character , Integer > var_6 = new HashMap < > ( ) ;
    var_6 . put ( 'I' , 1 ) ;
    var_6 . put ( 'V' , 5 ) ;
    var_6 . put ( 'X' , 10 ) ;
    var_6 . put ( 'L' , 50 ) ;
    var_6 . put ( 'C' , 100 ) ;
    var_6 . put ( 'D' , 500 ) ;
    var_6 . put ( 'M' , 1000 ) ;
    String var_25 = new StringBuilder ( var_1 ) . reverse ( ) . toString ( ) ;
    int var_27 = 0 , var_28 = - 1 ;
    for ( int var_29 = 0 , var_31 = var_25 . length ( ) ;
    var_29 < var_31 ;
    var_29 ++ ) {
      int var_34 = var_6 . get ( var_25 . charAt ( var_29 ) ) ;
      if ( var_34 < var_28 ) {
        var_27 -= var_34 ;
      }
      else {
        var_27 += var_34 ;
      }
      var_28 = var_34 ;
    }
    return var_27 ;
  }
  