Pergunta de entrevista da empresa Amazon

Minimum Cost connections in a graph given arrays with beginning node, end node, and cost.