Stripe Interview Question

Some question about parsing URLs