Permutation with stack and recursion | ScratchStats