Find conflicting employee emails
Your task
Two HR systems were merged, and the combined feed has rows "id,email". The same id may appear many times; identical repeats are fine, but an id listed with two or more DIFFERENT emails is a data conflict that must be escalated. Return the conflicting ids, sorted ascending. Example: ["e1,ava@co.io", "e2,raj@co.io", "e1,ava@old.io"] gives ["e1"].
Examples
conflicting_ids(rows: list[str]) -> list[str]Example 1
Input
conflicting_ids(["e1,ava@co.io", "e2,raj@co.io", "e1,ava@old.io"])Output
["e1"]