Click4Ai

306.

Easy

### Image Flipping

Flips an image horizontally or vertically.

**Example:** Flip a 2x2 image horizontally: [[1,2],[3,4]] becomes [[2,1],[4,3]].

**Constraints:** Image size: 2x2 to 10x10.

Test Cases

Test Case 1
Input: [[1,2],[3,4]]
Expected: [[2,1],[4,3]]
Test Case 2
Input: [[5,6],[7,8]]
Expected: [[6,5],[8,7]]
+ 3 hidden test cases