Build the algorithm which counts the elements equal to the product from the multiplication of
minimum and maximum of a given matrix A (m, n)