Explain Prims Algorithm Leetcode Sql Questions