How To Determine Maximum And Minimum Value