Publicis Sapient interview question

Difference between useCallback and useMemo with Example