Ten digits, a few slots, and two numbers to reason from.
How to play
A code of digits is locked in. Digits can repeat.
Print a full row and two numbers appear beside it. The green one counts the digits that are right and in the right place; the orange one counts the digits that are in the code but somewhere else.
You are never told which is which. That is the puzzle.