Rosetta Problems

Find the Punishment Number of an Integer

https://leetcode.com/problems/find-the-punishment-number-of-an-integer