Problems
We have a list of integers
Our only option is to change them by appending digits
Given the current list, what is the minimum number of single digit append operations that are necessary for the list to be in strictly increasing order?
For example, if the list is

Input
The first line of the input gives the number of test cases,
Output
For each test case, output one line containing Case #,
where
Example
4
3
100 7 10
2
10 10
3
4 19 1
3
1 2 3
Case #1: 4
Case #2: 1
Case #3: 2
Case #4: 0