Meta interview question

3. rotate without diagonal changing