Welcome! You have to crack the 4 digit code (non-repeating digits) in the fewest number of guesses.
Fortunately, the machine
indicate following colors which tells:
Green- The Secret Code contains this Digit and it is placed in its correct position.
Yellow- The Secret Code contains this Digit but it is not placed in its correct position.
Red- The Secret Code does not contains this Digit.