Vyapar interview question

quick sort, rotate a matrix.