FabHotels interview question

I was asked to create a program that can Dynamically render component trees using a provided JSON structure of the app, and the corresponding data.