Smallest Sufficient Team (LeetCode 1125)
Asked in the Coding stage. Given a list of required skills and each person's skills, return indices of the smallest team covering every required skill.
Input: req_skills, a list of unique strings, and people, a list of skill lists. Output a list of person indices. Any smallest team is valid.
Example: req_skills = ["a", "b"], people = [["a"], ["b"], ["a", "b"]] returns [2].
Constraints: at most 16 required skills, at most 60 people, and at least one sufficient team exists.
def smallest_sufficient_team(req_skills, people):