Problem 024 added

my initial permutation function was permutating incorrectly so I had to
find a ready-made solution