Domanda di colloquio di Rocket Lawyer

There was this coding question in Typescript