https://codeanddebug.in/blog/01-matrix-leetcode-542/