I am trying to print the position of the largest element of the last column in a matrix. But there arises an issue when a user inputs duplicate elements like this-