Partha Dental interview question

Task that should fetch data from api and should be represent in such way