code: public static String getLongestUrlPattern(String firstUrlPattern, String secondUrlPattern) {
          if (secondUrlPattern == null || (firstUrlPattern != null &&
              firstUrlPattern.length() >= secondUrlPattern.length())) {
              return firstUrlPattern;
          } else {
              return secondUrlPattern;
          }
      }
docs: Determine the longest URL pattern.
  
  @param firstUrlPattern
  @param secondUrlPattern
  @return the longest url pattern