Walmart Interview Question

Rotate a nd matrix without using numpy.