Honeywell interview question

When should i use useMemo.