solution to Path Sum