Sponsored
Use these hints if you're stuck. Try solving on your own first.
Count the frequency of each digit in num.
Solve with full IDE support and test cases