C++ || Easy Solution || ✅✅✅✅✅
\nclass Solution {\npublic:\n    int countTime(string time) {\n        int res=1;\n        if(time[0]==\'?\' && time[1]==\'?\')    res *= 24;\n        else if(t
```\nclass Solution {\npublic:\n    int countTime(string time) {\n        int res=1;\n        if(time[0]==\'?\' && time[1]==\'?\')    res *= 24;\n        else if(time[0]==\'?\')\n        {\n            if(time[1]<\'4\')   res *= 3;\n            else if(time[1]>=\'4\' && time[1]<=\'9\') res *= 2;\n        }\n        else if(time[1]==\'?\')\n        {\n            if(time[0]==\'0\' || time[0]==\'1\')    res *= 10;\n            else if(time[0]==\'2\')   res *= 4;\n        }\n        \n        if(time[3]==\'?\' && time[4]==\'?\')    res *= 60;\n        else if(time[3]==\'?\')   res *= 6;\n        else if(time[4]==\'?\')   res *= 10;\n        \n        return res;\n    }\n};\n```
['C', 'C++']