def pick_latest_version(versions):
  """Returns the higher version available in the given list of versions.

  versions:
    Array of strings with the availalbe versions.
  """
  def from_string(version):
    return tuple(int(part) for part in version.split('.'))

  def to_string(version):
    return '.'.join(str(part) for part in version)

  int_versions = [from_string(version) for version in versions]
  latest = max(int_versions)
  return to_string(latest)