Records are [name, dept, salary]. Write top_per_dept(records) returning a list of [dept, name] for the highest earner in each department, sorted by dept (ties: name A→Z wins).
top_per_dept([['Asha', 'IT', 90], ['Ravi', 'HR', 50], ['Kiran', 'IT', 95]]) → [['HR', 'Ravi'], ['IT', 'Kiran']]
top_per_dept([]) → []
Submit runs 4 tests, including hidden edge cases.
Run your code to see the output here.