completed implementation of function to plot the max and min score distribution of a competition