Given an integer n, calculate the sum of all its digits, then multiply the result by 7.
Examples
Example 1
Input: 123
Output: 42
(1 + 2 + 3) × 7 = 6 × 7 = 42
Example 2
Input: 999
Output: 189
(9 + 9 + 9) × 7 = 27 × 7 = 189
Example 3
Input: 0
Output: 0
Constraints
- Handle single digits and multiple digits
- Non-negative integers