C++ || 100% faster || 3ms || easy
\nclass Solution {\npublic:\n    int countTime(string s) {\n        int ans = 1;\n        if(s[0] == \'?\'){\n            if(s[1]>= \'4\' && s[1] <=\'9\' )\n   
```\nclass Solution {\npublic:\n    int countTime(string s) {\n        int ans = 1;\n        if(s[0] == \'?\'){\n            if(s[1]>= \'4\' && s[1] <=\'9\' )\n                ans*= 2;\n            else{\n                ans*=3;\n            }\n        }if(s[1] == \'?\' ){\n            if( s[0] == \'?\')\n                ans= 24;\n            else if(s[0] == \'2\') ans*=4;\n            else ans*=10;\n        }\n        if(s[3] == \'?\' ){\n              ans*= 6;\n        }\n        if(s[4] == \'?\'){\n            ans*= 10;\n        }\n        \n        return ans;\n    }\n};\n```
['C']