Function to find the number of times minimum and maximum value updated during the traversal of the given array
void maxUpdated ( vector < int > arr ) { int h_score = arr [ 0 ] ; int l_score = arr [ 0 ] ; int i = 1 , j = 1 ;