TRY DO YOUR OWN ALL THE BEST:)
Code


# Code
```python []
class Solution(object):
    def minElement(self, nums):
        for i in nums:
            ans=0
            a=nums.index(i)
            for j in str(i):
                ans+=int(j)
            nums[a]=ans
            ans=0
        return min(nums)
        
```
['Python']