Leetcode 3378. Count Connected Components in LCM Graph | Hello Interview