Reddit interview question

Not in leetcode-style. Log aggregation, OOPS'ish design.