Easy C++ Solution  || Logic Building✅✅✅
Upvote if it helps u :)\n\nclass Solution {\npublic:\n    int countTime(string time) {\n        vector<int> v;\n        int mul=1;\n        int x = time[1] - \'
**Upvote if it helps u :)**\n```\nclass Solution {\npublic:\n    int countTime(string time) {\n        vector<int> v;\n        int mul=1;\n        int x = time[1] - \'0\';\n        int y = time[0] -\'0\';\n        \n     \n       if(time[0]==\'?\' && time[1] == \'?\'){\n           v.push_back(24);\n       }\n        else if(time[0] == \'?\' && x>3){\n            v.push_back(2);\n        }\n        else if(y==2 && time[1]==\'?\'){\n            v.push_back(4);\n        }\n        else if(time[0] ==\'?\' && x<=3){\n            v.push_back(3);\n        }\n        else if(time[1]==\'?\'){\n            v.push_back(10);\n        }\n        \n        if(time[3] ==\'?\' && time[4] ==\'?\'){\n            v.push_back(60);\n        }\n        else if(time[3]==\'?\'){\n            v.push_back(6);\n        }\n        else if(time[4]==\'?\'){\n            v.push_back(10);\n        }\n        \n        \n        for(auto it: v){\n            mul *=it;\n        }\n        \n        return mul;\n    }\n};\n\n```
['C']