Interview Guides

Given a list of log lines logs and a target severity string level, return all error codes that appear in lines matching that severity. A valid code appears as CODE=<value> where <value> consists of uppercase letters, digits, or underscores. Return each matching code once, in the order it is first found.
1 <= len(logs) <= 10^40 <= len(logs[i]) <= 200level is a non-empty uppercase stringA-Z, 0-9, and _