Simple Easy Understandable
\'\'\'\nclass Solution {\npublic:\n    int countTime(string time) {\n        \n        int ans=1;\n            if(time[0]==\'?\' && time[1]==\'?\'){\n          
\'\'\'\nclass Solution {\npublic:\n    int countTime(string time) {\n        \n        int ans=1;\n            if(time[0]==\'?\' && time[1]==\'?\'){\n                ans*=24;\n            }\n            else if(time[0]==\'?\'){//  only index 0 \n                    if(time[1]<\'4\'){\n                        ans*=3;\n                    }\n                    else{\n                        ans*=2;\n                    }   \n            }\n            else if(time[1]==\'?\'){\n               if(time[0]==\'0\'||time[0]==\'1\') {\n                   ans*=10;\n               }\n                if(time[0]==\'2\'){\n                    ans*=4;\n                }\n            }\n        \n        if(time[3]==\'?\'&& time[4]==\'?\'){\n            ans*=60;\n        }\n        else if(time[3]==\'?\'){\n            ans*=6;\n        }\n        else if(time[4]==\'?\'){\n            ans*=10;\n        }\n            \n        \n       return ans; \n    }\n};\n\'\'\'
['C']