Count Distinct Multiset Groups — Coding Problem — CareerVerse