solution to Path Sum II