Microsoft interview question

How to rotate strings in a multi-dimensional matrix.