heu.ai interview question

Explain about HOC and how to implement them ?