BNY Interview Question

Sorting of arrays into a whole separate array