maxcounters
Description
A bit of brain twist for this one. I could not get the answer myself after thinking for 40 mins. Actually it seemed that a lot of people like me could not really solve the problem without fulfilling the time complexity requirement. So I found a model? answer (scores 100%)
This one is smart. It has absolute maximum, which just keeps adding up the value. This is to be added at the very last stage. The one who answered this question must have thought for a while to divide the process into a few steps. And he/she did that.