Easiest C++ Solution
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution {\npublic:\n    int countTime(string time) {\n        int choice = 1;\n        //For Hours\n        if(time[0] == \'?\' && time[1] == \'?\') choice *= 24;//0 ---> 23\n        //For h1\n        else if(time[0] == \'?\' && time[1] <= \'3\') choice *= 3;  // 0,1,2\n        else if(time[0] == \'?\' && time[1] > \'3\') choice *= 2;   // 0,1\n        //For h2\n        if(time[1] == \'?\' && (time[0] == \'0\' || time[0] == \'1\')) choice *= 10; // 0 ---> 9\n         if(time[1] == \'?\' && time[0] == \'2\') choice *= 4;       // 0,1,2,3\n         //For Minutes\n         if(time[3] == \'?\' && time[4] == \'?\') choice *= 60;      // 0 ----> 59\n         //For m1\n         else if(time[3] == \'?\' && time[4] != \'?\') choice *= 6;  // 0,1,2,3,4,5\n         else if(time[3] != \'?\' && time[4] == \'?\') choice *= 10; // 0 ---> 9\n         \n         return choice;\n    }\n};\n```
['C++']