Microsoft interview question

1-Matrix rotation by 90 degrees. 2-string compression