47. implement Multiply<A, B>

TypeScript

  - accepted / - tried

Implement Multiply<A, B>

type A = Multiply<1, 0> // 0type B = Multiply<4, 6> // 24

Only need to consider non-negative integers.

Let's try to solve this problem within 10 minutes.