Adobe interview question

Mostly array/sorting questions.