CTCI find largest sum of consecutive sequence