Wrong Implementation still correct result

Describe your issue

I know it is a small bug but it may simply help few beginners who want to practice 2d matrix,

Screenshot

Additional info

ValidationError or IncorrectImplementationError Raising these errors can significantly help any user from implementing using wrong data structure. Plz look forward to it.
Question- Matrix Representation.

In most of our judges, we ignore extra whitespaces around the output.