Your question is Top IPs from Server Logs. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
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):