Yantriks interview question

Sort the given array in easiest possible way