LeetCode 2711: Cleverly Done! Difference of Number of Distinct Values