Microsoft Interview Question

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