Relevel interview question

DS algo question on array sorting