ByteDance Interview Question

rotate a 2d array in place