https://mixrolikus.cc/video/4f0q397Ovq8/01-matrix-leetcode-542-python