Beginner friendly solution using Python
\n\n# Code\npython3 []\nclass Solution:\n    def minElement(self, nums: List[int]) -> int:\n\n        sol = []\n\n        for i in nums:\n            s = str(i)
\n\n# Code\n```python3 []\nclass Solution:\n    def minElement(self, nums: List[int]) -> int:\n\n        sol = []\n\n        for i in nums:\n            s = str(i)\n            c = 0\n            print(i)\n            for j in s:\n                c += int(j)\n            sol.append(c)\n\n        return min(sol)\n\n        \n```
['Python3']