Given a positive integer n, compute its digit frequency score.
The digit frequency score is calculated by finding the frequency of each unique digit present in n, multiplying each digit by its frequency, and summing these values together.
Return the total digit frequency score of n.
Constraints:
n
Given a positive integer n, compute its digit frequency score.
The digit frequency score is calculated by finding the frequency of each unique digit present in n, multiplying each digit by its frequency, and summing these values together.
Return the total digit frequency score of n.
Constraints:
n