Solution for Path Sum