Java easy solution|| 0ms
\n\tclass Solution {\n\t\tpublic int countTime(String time) {\n\t\t\tint hh = 1;\n\t\t\tint mm = 1;\n\t\t\t  if (time.charAt(0) == \'?\' && time.charAt(1) != \'
\n\tclass Solution {\n\t\tpublic int countTime(String time) {\n\t\t\tint hh = 1;\n\t\t\tint mm = 1;\n\t\t\t  if (time.charAt(0) == \'?\' && time.charAt(1) != \'?\') {\n\t\t\t\tif (time.charAt(1) <= \'3\')\n\t\t\t\t\thh *= 3;\n\t\t\t\t else \n\t\t\t\t\thh *= 2;\n\n\t\t\t  } \n\t\t\t\telse if (time.charAt(0) != \'?\' && time.charAt(1) == \'?\') {\n\t\t\t\t\tif (time.charAt(0) <= \'1\') \n\t\t\t\t\t\thh *= 10;\n\t\t\t\t\t else \n\t\t\t\t\t\thh *= 4;\n\t\t\t\t}\n\t\t\t\telse if (time.charAt(0) == \'?\' && time.charAt(1) == \'?\') \n\t\t\t\t\thh *= 24;\n\n\t\t\t\tif (time.charAt(3) == \'?\') \n\t\t\t\t\tmm *= 6;\n\n\t\t\t\tif (time.charAt(4) == \'?\') \n\t\t\t\t\tmm *= 10;\n\n\t\t\treturn hh * mm;\n\t\t}\n\t}
[]