[amazon] printing 2D array in spiral