Implement the function calculate_min_max_sum_of_squares that calculates the minimum and maximum values of the sum of squares of wins for a given number of test cases, based on the number of participants in each case.
Input Requirements
The function should accept two parameters:
t (int): The number of test cases.
n_list (list of int): A list containing integers where each integer represents the number of participants in each test case.
Output Requirements
The function should return a list of tuples, where each tuple corresponds to a test case and contains:
The minimum value of the sum of squares of wins for the test case.
The maximum value of the sum of squares of wins for the test case.
Implementation Notes
The minimum value should be calculated using the average distribution of wins.
The maximum value should be based on the complete distribution of wins squared.
Both values should be computed modulo 1000000007.
File Requirements
Write the solution in a file named /app/solution.py.