Swiggy interview question

Deciding on component structures in frameworks