Problem 81: Path sum: two ways