Faire Interview Question

2D array matrix sort outer rings