LeetCode
Powerful Integers
Click
here
for an explanation.