two attemps to PathSum question.