docs: public static short searchMax(short[] shortArray) {
          if(shortArray.length == 0) {
              throw new IllegalArgumentException("The array you provided does not have any elements");
          }
  
          short max = shortArray[0];
  
          for(int i = 1; i < shortArray.length; i++) {
              if(shortArray[i] > max) {
                  max = shortArray[i];
              }
          }
  
          return max;
      }