Amazon Interview Question

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