They asked me to implement a TypeScript class named Firewall, with two methods: addIp() to register allowed IPs and isAllowed() to check if a given IP is authorized based on the previously added entries.
Check out your Company Bowl for anonymous work chats.