Java Solution || 0ms runtime || Faster than 100%
```java \nclass Solution {\n    public int countTime(String time) {\n        int hr=0;\n        if(time.charAt(0)==\'?\')\n        {\n            if(time.charAt
```java \nclass Solution {\n    public int countTime(String time) {\n        int hr=0;\n        if(time.charAt(0)==\'?\')\n        {\n            if(time.charAt(1)!=\'?\')\n            {\n                if(time.charAt(1)>\'3\')\n                    hr+=2;\n                else\n                    hr+=3;\n            }\n            else\n                hr+=24;\n        }\n        else if(time.charAt(1)==\'?\')\n        {\n            if(time.charAt(0)==\'2\')\n                hr+=4;\n            else\n                hr+=10;\n        }\n        \n        int min = 0;\n        if(time.charAt(3)==\'?\')\n            min+=6;\n        if(time.charAt(4)==\'?\')\n            min= Math.max(min,1)*10;\n        return Math.max(hr,1)*Math.max(1,min);\n    }\n}
['String']