Reactjs Interview Questions Useeffect