# Task
 "AL-AHLY" and "Zamalek" are the best teams in Egypt, but "AL-AHLY" always wins the matches between them. "Zamalek" managers want to know what is the best match they've played so far.
 The best match is the match they lost with the minimum goal difference. If there is more than one match with the same difference, choose the one "Zamalek" scored more goals in.
 Given the information about all matches they played, return the `index` of the best match (`0-based`). If more than one valid result, return the smallest index.
# Example
 For `ALAHLYGoals = [6,4] and zamalekGoals = [1,2]`, the output should be 1.
 Because `4 - 2` is less than `6 - 1`
 For `ALAHLYGoals = [1,2,3,4,5] and zamalekGoals = [0,1,2,3,4]`, the output should be 4.
 The goal difference of all matches are 1, but at 4th match "Zamalek" scored more goals in. So the result is `4`.
# Input/Output
 -  `[input]` integer array `ALAHLYGoals`
  The number of goals "AL-AHLY" scored in each match.
 - `[input]` integer array `zamalekGoals`
  The number of goals "Zamalek" scored in each match. It is guaranteed that zamalekGoals[i] < ALAHLYGoals[i] for each element.
 - `[output]` an integer
  Index of the best match.

def best_match(goals1 : list, goals2 : list):

    # Set the current "best" values as the first match
    lowest_difference = goals1[0] - goals2[0]
    amount_of_goals = goals2[0]
    best_match_index = 0

    # Loop through the length of the lists, to see if theres a better match
    for i in range(1, len(goals1)):

        # The current difference in goals.
        current_difference = goals1[i] - goals2[i]

        if (current_difference) < lowest_difference: # If the game was closer, this is the best match
            lowest_difference = current_difference
            amount_of_goals = goals2[i]
            best_match_index = i

        elif (current_difference == lowest_difference) and (amount_of_goals < goals2[i]): # If the difference is the same, but Zamalek scored more goals, it should change the best match.
            amount_of_goals = goals2[i]
            best_match_index = i
    
    return best_match_index

def best_match(goals1 : list, goals2 : list):

    # Set the current "best" values as the first match
    lowest_difference = goals1[0] - goals2[0]
    amount_of_goals = goals2[0]
    best_match_index = 0

    # Loop through the length of the lists, to see if theres a better match
    for i in range(1, len(goals1)):

        # The current difference in goals.
        current_difference = goals1[i] - goals2[i]

        if (current_difference) < lowest_difference: # If the game was closer, this is the best match
            lowest_difference = current_difference
            amount_of_goals = goals2[i]
            best_match_index = i

        elif (current_difference == lowest_difference) and (amount_of_goals < goals2[i]): # If the difference is the same, but Zamalek scored more goals, it should change the best match.
            amount_of_goals = goals2[i]
            best_match_index = i
    
    return best_match_index