Java || Brainless condition check
\nclass Solution {\n    public int countTime(String time) {\n        String[] help = time.split(":");\n        int res = 1;\n        String hour = help[0];\n   
```\nclass Solution {\n    public int countTime(String time) {\n        String[] help = time.split(":");\n        int res = 1;\n        String hour = help[0];\n        String m = help[1];\n        int hourChoices = getHour(hour);\n        int timeChoices = getTime(m);\n        res = res * hourChoices * timeChoices;\n        return res;\n    }\n    public int getHour(String h) {\n        if (h.charAt(0) == \'?\') {\n            if (h.charAt(1) == \'?\') {\n                return 24; \n            } else if (h.charAt(1) > \'3\'){\n                return 2;\n            } else {\n                return 3;\n            }\n        } else {\n            if (h.charAt(1) != \'?\') {\n                return 1;\n            } else if (h.charAt(0) == \'2\') {\n                return 4;\n            } else {\n                return 10;\n            }\n        }\n    }\n    public int getTime(String t) {\n        int res = 1;\n        if (t.charAt(0) == \'?\') {\n            res *= 6;\n        } \n        if (t.charAt(1) == \'?\') {\n            res *= 10;\n        }\n        return res;\n    }\n}\n```
['Java']