Implement the function calculate_water_required(test_cases), which calculates the amount of water required based on the input values provided in the test_cases list. Each value in the test_cases list represents a quantity (such as number of plants), and the function should calculate how much water is needed by multiplying each quantity by 2.
Input Requirements
The function takes a single argument:
test_cases: A list of integers (where each integer n represents the quantity for which water is to be calculated).
Output Requirements
The function returns a list of integers, where each integer is the result of multiplying the corresponding input quantity by 2.
Implementation
Create a file named /app/solution.py.
Inside the file, define the function calculate_water_required following the provided signature and implementation.
Ensure that the implementation handles a list of non-negative integers, and properly returns a list of integers as specified.
Example
python
# Input
test_cases = [1, 2, 3]
# Output
result = calculate_water_required(test_cases)
# result should be [2, 4, 6]