Given a list of log file contents, where each file is represented as an array of strings and each string is one web server log line, return the top 10 IP addresses by request count. Treat the IP address as the first whitespace-separated token on each valid line. If multiple IPs have the same count, return them in ascending lexicographic order.
def top_ten_ips(log_files):