you give 0indexed 1dimensional 1d integer array original integer m n you task create 2dimensional 2d array m row n column element originalthe element indice 0 n 1 inclusive original form row construct 2D array element index n 2 n 1 inclusive form second row construct 2D array onReturn m x n 2D array construct accord procedure 2D array impossible Example 1input original 1234 m 2 n 2output 1234explanation the construct 2D array contain 2 row 2 columnsthe group n2 element original 12 row construct 2D arraythe second group n2 element original 34 second row construct 2D arrayExample 2Input original 123 m 1 n 3output 123explanation the constructed 2D array contain 1 row 3 columnsput element original row construct 2D arrayExample 3Input original 12 m 1 n 1output Explanation there 2 element originalit impossible fit 2 element 1x1 2D array return 2D array Constraints1 originallength 5 1041 originali 1051 m n 4 104