Very similar to getMin function

This getMax function in Listing 7 is very similar to the previously-discussed function named getMin in Listing 6.

The main differences between the two functions are: