Finding Maximum And Minimum Algorithm