comefrom: <awangdev>1041. Robot Bounded In Circle_1.java
code: public boolean judgeCircle(String moves) {
          if (moves == null || moves.length() % 2 == 1) {
              return false;
          }
          int trackX = 0;
          int trackY = 0;
          for (int i = 0; i < moves.length(); i++) {
              if (moves.charAt(i) == 'U' || moves.charAt(i) == 'D') {
                  trackY += moves.charAt(i) == 'U' ? 1 : -1;
              }
              if (moves.charAt(i) == 'L' || moves.charAt(i) == 'R') {
                  trackX += moves.charAt(i) == 'L' ? 1 : -1;
              }
          }
          return trackX == 0 && trackY == 0;
      }
masked: public boolean var_0 ( String var_2 ) {
    if ( var_2 == null || var_2 . length ( ) % 2 == 1 ) {
      return false ;
    }
    int var_8 = 0 ;
    int var_9 = 0 ;
    for ( int var_10 = 0 ;
    var_10 < var_2 . length ( ) ;
    var_10 ++ ) {
      if ( var_2 . charAt ( var_10 ) == 'U' || var_2 . charAt ( var_10 ) == 'D' ) {
        var_9 += var_2 . charAt ( var_10 ) == 'U' ? 1 : - 1 ;
      }
      if ( var_2 . charAt ( var_10 ) == 'L' || var_2 . charAt ( var_10 ) == 'R' ) {
        var_8 += var_2 . charAt ( var_10 ) == 'L' ? 1 : - 1 ;
      }
    }
    return var_8 == 0 && var_9 == 0 ;
  }
  