Add solution to 'path sum'.