[Practice-Codes] Permutation code