Implemented what mentioned || Shortest C++
\n\tint countTime(string time) {\n        string s1=time.substr(0,2);\n        string s2=time.substr(3);\n        \n        int a=1,b=1;\n        // Hours\n    
```\n\tint countTime(string time) {\n        string s1=time.substr(0,2);\n        string s2=time.substr(3);\n        \n        int a=1,b=1;\n        // Hours\n        if(s1=="??") a=24;\n        else if(s1[0]==\'?\') a=s1[1]<=\'3\'?3:2;\n        else if(s1[1]==\'?\') a=s1[0]==\'2\'?4:10;\n       \n        // Minutes\n        if(s2=="??") b=60;\n        else if(s2[0]==\'?\') b=6;\n        else if(s2[1]==\'?\') b=10;\n         \n        return a*b;\n        \n    }\n```
['Brainteaser', 'C']