Rotate array's elements 90 degrees