Given a matrix of values, write a function to print its values in a clockwise inward spiral starting from (0,0).
Use the signature spiral_order(matrix). The input is a rectangular list of lists, and the function should return the values in print order so the result can be displayed or tested directly. Return an empty list for an empty matrix.
def spiral_order(matrix):