how to calculate maximum and minimum marks from a grouped data.