Practice Problem

Accounts Merge

Difficulty: Medium

Given a list of accounts where each account has a name and emails, merge accounts that share a common email address.