Palo Alto Networks interview question

Difference between useMemo and useCallback