Implement the function assign_bowlers which assigns bowlers to a given number of players based on the total number of bowlers, the number of bowlers available, and the maximum number of times a bowler can bowl.
n (int): The total number of players that need to be assigned bowlers. (1 ≤ n ≤ 100)
k (int): The number of bowlers available. (1 ≤ k ≤ 100)
l (int): The maximum number of times each bowler can bowl. (1 ≤ l ≤ 100)
Output Requirements
Returns a list of integers where each integer represents the bowler assigned to each player, in order. The integers should start from 1 up to k, cycling through the available bowlers.
If it is not possible to assign the bowlers given the constraints (k * l < n or k == 1 and n > 1), return -1.
Example
assign_bowlers(5, 2, 3) should return [1, 2, 1, 2, 1].
assign_bowlers(10, 3, 2) should return -1 (not enough max bowl counts).
assign_bowlers(4, 1, 4) should return -1 (only one bowler available for more than one player).
Implementation
Create a Python file named solution.py in the /app directory.
Implement the assign_bowlers function as described above. The function should adhere to the input/output specifications and produce correct results for the described scenarios.