The **Image Resizing** problem involves changing the size of an image. **Example:** Resizing an image of size 256x256 to 512x512. **Constraints:** The input image is a 2D numpy array, and the output should be a resized 2D numpy array. The resizing factor should be a positive integer.
Test Cases
Test Case 1
Input:
[[1,2],[3,4]]Expected:
[[1,1,2,2],[1,1,2,2],[3,3,4,4],[3,3,4,4]]Test Case 2
Input:
[[5,6],[7,8]]Expected:
[[5,5,6,6],[5,5,6,6],[7,7,8,8],[7,7,8,8]]+ 3 hidden test cases