comefrom: <gouthampradhan>string_ValidWordSquare_1.java
code: public boolean validWordSquare(List<String> words) {
      List<String> newList = new ArrayList<>();
      int max = 0;
      for (int i = 0; i < words.size(); i++) {
        max = Math.max(max, words.get(i).length());
      }
      for (int i = 0; i < max; i++) {
        StringBuilder sb = new StringBuilder();
        for (String w : words) {
          if (i < w.length()) {
            sb.append(w.charAt(i));
          } else break;
        }
        newList.add(sb.toString());
      }
      if (words.size() != newList.size()) return false;
      for (int i = 0, l = words.size(); i < l; i++) {
        if (!words.get(i).equals(newList.get(i))) return false;
      }
      return true;
    }
masked: public boolean var_0 ( List < String > var_3 ) {
    List < String > var_5 = new ArrayList < > ( ) ;
    int max = 0 ;
    for ( int var_8 = 0 ;
    var_8 < var_3 . size ( ) ;
    var_8 ++ ) {
      max = Math . max ( max , var_3 . get ( var_8 ) . length ( ) ) ;
    }
    for ( int var_8 = 0 ;
    var_8 < max ;
    var_8 ++ ) {
      StringBuilder var_14 = new StringBuilder ( ) ;
      for ( String var_15 : var_3 ) {
        if ( var_8 < var_15 . length ( ) ) {
          var_14 . append ( var_15 . charAt ( var_8 ) ) ;
        }
        else break ;
      }
      var_5 . add ( var_14 . toString ( ) ) ;
    }
    if ( var_3 . size ( ) != var_5 . size ( ) ) return false ;
    for ( int var_8 = 0 , var_20 = var_3 . size ( ) ;
    var_8 < var_20 ;
    var_8 ++ ) {
      if ( ! var_3 . get ( var_8 ) . equals ( var_5 . get ( var_8 ) ) ) return false ;
    }
    return true ;
  }
  