we have an array with objects.
each object having running time in milliseconds and value.
find the max value for every running second.
example : this is the array: [{123,4},{227,8},{7777,9},{9000,9}]
second 1 max value 8
second 7 max value 9
second 9 max value 9