Leetcode 2946. Matrix Similarity After Cyclic Shifts | Hello Interview