a) Couldn't we just keep track of minimum and maximum value encountered while iterating through array?