Difference Between Element Sum and Digit Sum of an Array
You are given a positive integer array `nums`.
- The **element sum** is the sum of all the elements in `nums`.
- The **digit sum** is the sum of all the digits (not necessarily distinct) that appear in `nums`.
Return the absolute difference between the element sum and the digit sum of `nums`.
30:00
Difference Between Element Sum and Digit Sum of an Array