Displaying minimum value present in an array