Mirror Grid

From Codeforces. Min rotations to make grid symmetric. Solve the geometry problem "Mirror Grid".

Examples
Input: [1,2,3]
Output: 0
Hints

Mirror Grid

**From Codeforces.** Min rotations to make grid symmetric. Solve the geometry problem "Mirror Grid".