Python Type Safety In Typescript Interview