Solving some LeetCode challenges in TypeScript

Since I need practice with TypeScript, I thought it would be a good idea to solve some coding challenges using types.