HW2 Permutations and Hanoi Towers