Meta Interview Question

Spiral through a 2d matrix