TS Solution
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
```typescript []
function countTime(time: string): number {
    const hr0 = time.split(":")[0][0]
    const hr1 = time.split(":")[0][1]
    const min0 = time.split(":")[1][0]
    const min1 = time.split(":")[1][1]

    let poss = 1;
    if (min1 === '?') {
        poss *= 10
    }
    if (min0 === '?') {
        poss *= 6
    }
    if (hr0 === '?' && hr1 === '?') {
        poss *= 24;
    } else {
        if (hr0 === '?') {
            if (hr1 >= '5')
                poss *= 2
            else if (hr1 == '4') poss *= 2
            else (poss *= 3)
        }
        if (hr1 === '?') {
            if (hr0 === '0' || hr0 === '1')
                poss *= 10
            else poss *= 4
        }
    }

    return poss
};
```
['TypeScript']