guess: "SASSY", target: "BRASS", expect either "YYBGB" or "BYYGB". I believe your algorithm would return "YYYGB".
guess: "BRASS", target: "SASSY", expect "BBYGY"
guess: "ASSET", target: "BRASS", expect "YYYBB"
guess: "BRASS", target: "ASSET", expect "BBYYY"
guess: "SASSY", target: "BRASS", expect either "YYBGB" or "BYYGB". I believe your algorithm would return "YYYGB".
guess: "BRASS", target: "SASSY", expect "BBYGY"
guess: "ASSET", target: "BRASS", expect "YYYBB"
guess: "BRASS", target: "ASSET", expect "BBYYY"