Swiggy Interview Question

Deciding on component structures in frameworks