Given an m x n matrix, how would you return all elements in spiral order?
Implement spiral_order(matrix), which accepts a rectangular list of lists and returns a flat list containing every element exactly once, traversed clockwise from the top-left corner. Return an empty list when the matrix is empty.
matrix is a rectangular list of lists. Return a list in clockwise spiral order.
def spiral_order(matrix):