code: function max(input) {
                  if (!Array.isArray(input)) {
                      throw new Error('input must be an array');
                  }
  
                  if (input.length === 0) {
                      throw new Error('input must not be empty');
                  }
  
                  var max = input[0];
                  for (var i = 1; i < input.length; i++) {
                      if (input[i] > max) max = input[i];
                  }
                  return max;
              }
docs: Computes the maximum of the given values
  @param {Array<number>} input
  @return {number}