Help me in solving PREQ15 problem

My issue

Problem(Farm animals) - Generate examples
Now that we have understood the problem statement, let us write down a few more sample cases or examples.
Review the sample input / output given in the table below.

Sample 1:
Input
Output
8 sample inputs
2 3 4
2 3 5
2 3 6
2 3 7
2 3 8
2 3 9
2 3 10
2 3 11
8 sample inputs
CHICKEN
NONE
ANY
NONE
CHICKEN
DUCK
CHICKEN
NONE
Did you like the problem?
4 users found this helpful

My code

3966,3968

Learning course: Design and Analysis of Algorithms
Problem Link: Problem(Farm animals) - Generate examples in Design and Analysis of Algorithms