Infosys Interview Question

How does you use useMemo?