Solution to Path Sum