Not a 2D matrix in input


#1

The test cases are wrong for python3 atleast. The given matrix isn’t a 2D matrix .
Eg1:-
A :
[
[-8]
[8]
[-8]
[8]
[-8]
[8]
[-8]
[8]
[-8]
[8]
[-8]
[8]
]


#2

yaa ! its true , they need to change input format