solve path sum