D. Restore Permutation time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output An array of integers p1,p2,…,pn is called a permutation if it contains each number from 1 to n exactly once. For example, the following arrays are permutations: [3,1,2],...