Maximum Number of K Divisible Components | Leetcode 2872