Chef and new recipe

In which cases it can fail…give me some example…and let me clear the below line meaning…
If it is impossible to pick items in such a way, print -1.
When this case can occur…please give small example.

If we have, say, 1 ingredient of quantity<2.