Submission beat 100% of other submissions' runtime.
IntuitionApproachComplexity
Time complexity:

Space complexity:
Code
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->

# Approach
<!-- Describe your approach to solving the problem. -->

# Complexity
- Time complexity:
<!-- Add your time complexity here, e.g. $$O(n)$$ -->

- Space complexity:
<!-- Add your space complexity here, e.g. $$O(n)$$ -->

# Code
```java []
class Solution {
    public int countTime(String time) {
        int result = 1;
        if (time.charAt(4) == '?') {
            result *= 10;
        }
        if (time.charAt(3) == '?') {
            result *= 6;
        }
        if (time.charAt(1) == '?' && time.charAt(0) == '?') {
            result *= 24;
        } else {
            if (time.charAt(1) == '?') {
                if (time.charAt(0) == '2') {
                    result *= 4;
                } else {
                    result *= 10;
                }
            }
            if (time.charAt(0) == '?') {
                if (time.charAt(1) < '4') {
                    result *= 3;
                } else {
                    result *= 2;
                }
            }
        }
        return result;    
    }
}
```
['Java']