PureCode Software Interview Question

How does Express.js handle routing and middleware execution?