✅✅✅ C++ || Simple and Easy to Understand Solution
 Up Vote if you like the solution\n\n/*\nFor mm there is no specific condition its as simple as 10 variation for last \'?\' and 6 variation for second last \'?\
<b> Up Vote if you like the solution\n```\n/*\nFor mm there is no specific condition its as simple as 10 variation for last \'?\' and 6 variation for second last \'?\'\nFor hh, there are three cases:\n1. when both hh are ?? => simply results in 24 variation\n2. whne first is ? and second is not => Again two cases, when non \'?\' is less than 4 ( 3 variations ) & greater than equal to 4 ( only 2 variations).\n3.When second is ? and first is not => Again two cases, if non \'?\' is 2 or not. if equl to 2 => 4 variations other wise 10 variations.\n*/\n\nclass Solution {\npublic:\n    int countTime(string time) {\n        int ans = 1;\n        if(time[4] == \'?\') ans = ans * 10;\n        if(time[3] == \'?\') ans = ans * 6;\n        \n        if(time[0] == \'?\' && time[1] == \'?\') ans = ans * 24;\n        else{\n            if(time[1] == \'?\'){ \n                if(time[0] == \'2\' ) ans = ans * 4;\n                else ans = ans * 10;\n            }\n            if(time[0] == \'?\'){\n                if(time[1] < \'4\') ans = ans * 3;\n                else ans = ans * 2;\n            }\n        }\n        return ans;\n    }\n};\n```\n\n<b>Here is an article of my interview experience - A Journey to FAANG Company, I recomand you to go through this to know which all resources I have used & how I cracked interview at Amazon:\nhttps://leetcode.com/discuss/interview-experience/3171859/Journey-to-a-FAANG-Company-Amazon-or-SDE2-(L5)-or-Bangalore-or-Oct-2022-Accepted
['C++']