Reactjs Fetch Data Javascript Interview Coding