Add permutation generation function.
Add solution 24
Merge branch 'PE-24'