Pass - 2 : compare with Next employee
for i in range ( employees - 2 , - 1 , - 1 ) : NEW_LINE INDENT if ( ratings [ i ] > ratings [ i + 1 ] and hikes [ i + 1 ] >= hikes [ i ] ) : NEW_LINE INDENT hikes [ i ] = hikes [ i + 1 ] + 1 ; NEW_LINE DEDENT DEDENT return hikes NEW_LINE