I need to design an algorithm that reads daily temperature record and finds the max and min monthly and annual temperature. Can I get some assistance with this?