Snail Sort – {kata} – [arrays, matrix, traversal] – (medium)
Problem Given an n x n array, return the array elements arranged from outermost elements to the middle element, traveling clockwise. Examples For better understanding, follow the numbers of the…