1380. Lucky Numbers in a Matrix - Explanation

Problem Link