https://gismet.github.io/posts/LeetCode-Detect-Cycles-in-2D-Grid1559/
LeetCode 1559. Detect Cycles in 2D Grid - Gismet Majidov