Diagnal interview question

Solve problems in Array management, and sorting algorithms.