One Digit Number

0

0 votes
Hard
Problem

Predict answer and write code from given test cases.
Sample Input 1
12345678922222
Sample Output 1
1

Sample Input 2
192837465
Sample Output 2
9

Sample Input 3
625
Sample Output 3
4

Sample Input 4
4
Sample Output 4
4

Constraints:
0 <= Number < 10^100

Time Limit: 1
Memory Limit: 256
Source Limit:
Editor Image

?