In this exercise, you are implementing a routing component of a web server. The
server is configured with a number of path prefixes which are matched against
request paths. The path prefixes can contain a wildcard character which
matches a full segment. See the unit tests below.
Copy the following code to https://play.rust-lang.org/ and make the tests
pass. Try avoiding allocating a Vec for your intermediate results: