Company question banks are included with the Insider plan.
You are given n connected components ("groups") of nodes. For example:
groups = [[1], [2, 3], [4, 5, 6]]
Each group is already internally connected. Your job is to write a function that...