Optiver interview question

Code pairing session on Permutations