Supposed memoization is based on start and end index.
Will it be correct to reuse values baed on memoization? Thanks