Question d’entretien chez Waze

I was asked to solve in python the leetcode question of Toeplitz matrix.