Beats 100%
Code

# Code
```java []
class Solution {
    public int minElement(int[] nums) {
        int min = digSum(nums[0]);
        for(int i=1; i<nums.length; i++){
            min = Math.min(min,digSum(nums[i]));
        }
        return min;
    }
    public int digSum(int a){
        int sum = 0;
        while (a > 0){
            sum += a % 10;
            a /= 10;
        }
        return sum;
    }
}
```
['Java']