Validate · Easy
Low stock alert
Each line is "<Item>, <in stock>, <minimum>".
Task
Write a prompt that lists items with stock below their minimum.
Output format
<item1>,<item2>,… or ALL OK
- Alphabetical order (ignoring capitals).
- Equal to the minimum is fine (not low).
Your prompt must contain {input}: it is replaced by each test case, just like the hidden tests in a hiring test.
Sample case 1
Input
Pens, 3, 10 Paper, 50, 20
Output
Pens
Sample case 2
Input
Tape, 5, 5
Output
ALL OK
There are 4 test cases in all; the others are like hidden tests: work out what tricky inputs they might use!