Given an m x n matrix, return all elements of the matrix in spiral order.
Click Run to execute sample tests.