C++ Solution using few If statements
\nint countTime(string time) {\n        int a=1,b=1,c=1,d=1;\n        if(time[4]==\'?\')\n            d=10;\n        \n        if(time[3]==\'?\')\n            c
```\nint countTime(string time) {\n        int a=1,b=1,c=1,d=1;\n        if(time[4]==\'?\')\n            d=10;\n        \n        if(time[3]==\'?\')\n            c=6;\n        \n        if(time[1]==\'?\')\n        {\n            if(time[0]==\'2\')\n                b=4;\n            else if(time[0]==\'?\')\n                b=1;\n            else\n                b=10;\n        }\n        \n        if(time[0]==\'?\')\n        {\n            if(time[1]>\'3\' && time[1]<=\'9\')\n                a=2;\n            else if(time[1]==\'?\')\n            {\n                a=24;\n            }\n            else\n                a=3;\n        }\n        return a*b*c*d; \n    }\n```
['C']