Deloitte Interview Question

How routing works in react