39. implement ToNumber<T>

  - accepted / - tried

Implement ToNumber<T> to get an integer number type from integer string.

type A = ToNumber<'1'> // 1type B = ToNumber<'40'> // 40type C = ToNumber<'0'> // 0

we can just consider smaller numbers

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

(17)