Leetcode 3608. Minimum Time for K Connected Components | Hello Interview