GoDaddy Interview Question

OA problem were on topic greedy technique on array and mst in graph