shit why not
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```\nfunction countTime(time: string): number {\n  let startingValue = 1\n  time.split(\':\').forEach((h, i) => {\n    if (h === \'??\') {\n      if (i === 0) { // hours\n        startingValue = 24\n      } else { // minutes\n        startingValue *= 60\n      }\n      time = time.replace(\'??\', \'00\')\n    }\n  })\n\n  return time.split(\'\').reduce<number>((acc, curr, i): number => {\n    if (curr === \'?\') {\n      switch(i) {\n        case 0:\n          if (Number(time[1]) >= 4) {\n            return acc *= 2\n          } else {\n            return acc *= 3\n          }\n        case 1:\n          if (Number(time[0]) === 2)  {\n            return acc *= 4\n          } else {\n            return acc *= 10\n          }\n        case 3:\n          return acc *= 6\n        default: \n          return acc *= 10\n      }\n    }\n\n    return acc\n  }, startingValue)\n};\n```
['TypeScript']