JAVA EASY SOLUTION
\nclass Solution {\n    public int countTime(String time) {\n        int a = 1;\n        int b = 1;\n        int c = 1;\n        int d = 1;\n        if(time.cha
```\nclass Solution {\n    public int countTime(String time) {\n        int a = 1;\n        int b = 1;\n        int c = 1;\n        int d = 1;\n        if(time.charAt(0)==\'?\') {\n            if(time.charAt(1)==\'0\' || time.charAt(1)==\'1\' || time.charAt(1)==\'2\' || time.charAt(1)==\'3\' || time.charAt(1)==\'?\') a = 3;\n            else a = 2;\n        }\n        if(time.charAt(1)==\'?\') {\n            if(time.charAt(0)==\'0\') b = 10;\n            else if(time.charAt(0)==\'1\') b = 10;\n            else if(time.charAt(0)==\'2\') b = 4;\n            else if(time.charAt(0)==\'?\') b = 8;\n \n        }\n        if(time.charAt(3)==\'?\') {\n            c = 6;\n        }\n        if(time.charAt(4)==\'?\') {\n            d = 10;\n        }\n        \n        \n        return a*b*c*d;\n    }\n}\n\n```
[]