docs: public static <E> int search(List<E> list, E value, int occurrence) {
          if(occurrence <= 0 || occurrence > list.size()) {
              throw new IllegalArgumentException("Occurrence must be greater or equal to 1 and less than "
                      + "the list length: " + occurrence);
          }
          int valuesSeen = 0;
          for(int i = 0; i < list.size(); i++) {
              if(list.get(i) == value) {
                  valuesSeen++;
                  if(valuesSeen == occurrence) {
                      return i;
                  }
              }
          }
          return -1;
      }