This funciton finds which input integer has the minimum index of input array. And prints the current status as a message.