GIC interview question

How to build custom hooks