p18: Triangle path sum