Consider the array sample A.
import numpy as np A = np.array([[2, 3, 6, 7, 3, 6, 7, 2], [2, 3, 6, 7, 3, 6, 7, 7], [2, 4, 3, 4, 6, 4,