NiYO interview question

How to reuse a component (Higher order component logic)