Implement a function named calculate_minimum_extra_shoes that determines the minimum number of extra shoes a person needs to acquire based on the number of pairs they already possess and how many shoes are required. Each pair of shoes requires two individual shoes.
Input/Output Requirements
Input:
The function will receive two parameters:
N (int): The number of pairs of shoes needed.
M (int): The number of individual shoes currently owned.
Output:
The function should return an integer representing the minimum number of extra shoes the person needs to acquire.
Logic Overview
Calculate the total number of shoes needed as total_shoes_needed = N * 2.
If the number of shoes currently owned (M) is greater than or equal to the total needed (N), return N (the number of pairs needed).
If no shoes are owned (M == 0), return the total shoes needed.
Otherwise, return the difference between the total shoes needed and the shoes currently owned (total_shoes_needed - M).
Implementation
The solution must be written in a file called /app/solution.py. Ensure the function is properly defined as per the provided signature.