path sum solution