Algorand interview question

Permutations Linked list implementation with modifications