We are playing the boardgame mastermind https://en.wikipedia.org/wiki/Mastermind_(board_game). The game master has created a 4-character code for you to guess, with characters ranging from "1" to "6" (e.g. code = [2 1 3 4]).
The first guess (this will be [1 1 2 2]) is already done and the game master has given you following feedback:
Now, your function has to do the next guesses. Each time your function is called, the input will contain the code and feedback of all your previous guesses, the output is a copy of the input with your new code added (refer to the example code).
It is shown you could solve the code in only 4 additional guesses (refer to the wiki page), you will however get 11 according to the rules of Mastermind.