Infosys interview question

How does you use useMemo?