3174. Clear Digits - Explanation

Problem Link