Bowling Kata (TypeScript)