Rosetta Problems

Minimum Element After Replacement With Digit Sum

https://leetcode.com/problems/minimum-element-after-replacement-with-digit-sum