Cognizant Interview Question

Q. How to handle routes with different values/names? Subroutes with params.