AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Code

# Code
```kotlin []
class Solution {
    fun countTime(time: String): Int {
        var coef = 1
        if(time[4] == '?') coef *= 10
        if(time[3] == '?') coef *= 6
        if(time[1] == '?'){
            when(time[0]){
                '0' ->coef *= 10
                '1' -> coef *= 10
                '2' ->coef *= 4
                else -> coef *= 24
            }
        }
        if(time[0] == '?'){
            when(time[1].code){
                in '4'.code..'9'.code -> coef *= 2
                in '0'.code..'3'.code -> coef *= 3
            }
        }
        return coef
    }
}
```
['Kotlin']