function latest(versions) {
  let latest = versions[0]
  for (let i = 1; i < versions.length; i++) {
    if (compare(latest, versions[i]) < 0) {
      latest = versions[i]
    }
  }
  return latest
}
Determines the latest version from a list of versions.

@param {string[]} versions - List of versions
@returns {string} Latest version