Interview Guides
Given a list of log lines logs, write a function that extracts error codes and returns the five most frequent ones. An error code appears only in lines containing the token ERROR and is the first alphanumeric token immediately following ERROR. Return a list of [code, count] pairs sorted by descending frequency, and for ties sort lexicographically by code.
1 <= len(logs) <= 10^51 and 500ERROR