Publicis Sapient Interview Question

Difference between useCallback and useMemo with Example