Faire interview question

2D array matrix sort outer rings