2493. Divide Nodes Into the Maximum Number of Groups | Leetcode Daily Challenge