51. implement Capitalize<T>

TypeScript

  - accepted / - tried

Implement MyCapitalize<T> to capitalize strings.

type A = MyCapitalize<'bfe'> // 'Bfe'

There is built-in Capitalize<T> in TypeScript, maybe you can try not to use it.

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

(4)