Coding exercise to find a best match pattern for each path in a list of paths