comefrom: <awangdev>Flip Game II_2.java
code: public static boolean canWin(String s) {
          if (s == null || s.length() <= 1) {
              return false;
          }
          StringBuilder sb = new StringBuilder(s);
          while (sb.indexOf("++") != -1) {
              int index = sb.indexOf("++");
              if(!canWin(s.substring(0, index) + "--" + s.substring(index + 2))) {
                  return true;
              }
              sb.replace(index, index + 1, "-");
          }
          return false;
      }
masked: public static boolean sample_funcname ( String s ) {
    if ( s == null || s . length ( ) <= 1 ) {
      return false ;
    }
    StringBuilder sb = new StringBuilder ( s ) ;
    while ( sb . indexOf ( "++" ) != - 1 ) {
      int index = sb . indexOf ( "++" ) ;
      if ( ! canWin ( s . substring ( 0 , index ) + "--" + s . substring ( index + 2 ) ) ) {
        return true ;
      }
      sb . replace ( index , index + 1 , "-" ) ;
    }
    return false ;
  }
  