solve path sum two ways