Runtime:  148 ms , faster than  34.43% of Python3 online submissions for Set Matrix Zeroes.

Memory Usage:  15.4 MB , less than  14.18% of Python3 online submissions for Set Matrix Zeroes.

If you have any questions regarding my code, feel free to ask in the comments :)