path sum not passed without getting the reason