Implement a function named minimum_bridges_to_remove that calculates the minimum number of bridges that must be removed to resolve all disputes between islands. Each dispute exists between two islands, represented by pairs of integers.
Input Requirements:
The function will accept three parameters:
N (int): The number of islands (1 ≤ N ≤ 100).
M (int): The number of disputes (0 ≤ M ≤ 100).
ab (list of tuples): A list containing M tuples, where each tuple (a_i, b_i) represents a dispute between the island a_i and island b_i (1 ≤ a_i, b_i ≤ N, a_i ≠ b_i).
Output Requirements:
The function should return an integer representing the minimum number of bridges that must be removed to resolve all disputes.
File Requirements:
Write the implementation in a file named /app/solution.py. The file should contain the function definition as described, along with appropriate comments and a docstring that outlines the parameters and return value.