solution to the finding permutations of possible paths taken up stairs