Simple Java Solution - 10 lines Code
\n# Code\n\nclass Solution {\n    public int countTime(String t) {\n        int c=1;\n        if(t.charAt(0)==\'?\'){\n            if(t.charAt(1)>=\'4\'&&t.char
\n# Code\n```\nclass Solution {\n    public int countTime(String t) {\n        int c=1;\n        if(t.charAt(0)==\'?\'){\n            if(t.charAt(1)>=\'4\'&&t.charAt(1)<=\'9\') c*=2;\n            else c*=3;\n        }\n        if(t.charAt(1)==\'?\'){\n            if(t.charAt(0)==\'?\') c=24;\n            else if(t.charAt(0)==\'2\') c*=4;\n            else c*=10;\n        }\n        if(t.charAt(3)==\'?\') c*=6;\n        if(t.charAt(4)==\'?\') c*=10;\n        return c;\n    }\n}\n```
['Java']