LeetCode: Rotate Image

Approach 1: a[i][j]->a[j][n-1-i], a[j][n-1-i]->a[n-1-i][n-1-j],
a[n-1-i][n-1-j]->a[n-1-j][i], a[n-1-j][i]->a[i][j]