comefrom: <gouthampradhan>string_LongestWordInDictonary_1.java
code: public String findLongestWord(String s, List<String> d) {
      Collections.sort(
          d, Comparator.comparing(String::length).reversed().thenComparing(String::compareTo));
      for (String str : d) {
        if (str.length() <= s.length()) {
          int i = 0, j = 0;
          for (int l1 = s.length(), l2 = str.length(); i < l1 && j < l2; ) {
            if (s.charAt(i) == str.charAt(j)) {
              i++;
              j++;
            } else {
              i++;
            }
          }
          if (j >= str.length()) return str;
        }
      }
      return "";
    }
masked: public String var_0 ( String var_1 , List < String > var_2 ) {
    Collections . sort ( var_2 , Comparator . comparing ( String :: length ) . reversed ( ) . thenComparing ( String :: compareTo ) ) ;
    for ( String var_3 : var_2 ) {
      if ( var_3 . length ( ) <= var_1 . length ( ) ) {
        int var_4 = 0 , var_5 = 0 ;
        for ( int var_6 = var_1 . length ( ) , var_7 = var_3 . length ( ) ;
        var_4 < var_6 && var_5 < var_7 ;
        ) {
          if ( var_1 . charAt ( var_4 ) == var_3 . charAt ( var_5 ) ) {
            var_4 ++ ;
            var_5 ++ ;
          }
          else {
            var_4 ++ ;
          }
        }
        if ( var_5 >= var_3 . length ( ) ) return var_3 ;
      }
    }
    return "" ;
  }
  