#2 - Count Digits

Example 1

Input: N = 12345

Output: 5

N has 5 digits

Example 2

Input: N = 8760

Output: 4

N has 4 digits

Last updated