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