Virtu Financial Interview Question

Number arrays and permutations