2685. Count the Number of Complete Components - Explanation

Problem Link