Mitsogo interview question

The coding questions are from array permutation etc