code: private static String combinePaths(List<String> paths) {
      File file = new File(paths.get(0));
  
      for (int i = 1; i < paths.size(); i++) {
        file = new File(file, paths.get(i));
      }
  
      return file.getPath();
    }
docs: Given a list of strings, concatenate them to form a file system
  path
  
  @param paths a list of strings to be included in the path
  @return String string that gives the file system path