4 problems

power function, anagrams, permutationI, permutationII