Cognizant interview question

Higher order component in react