Sum of a path equals to given target.