codechef prolem : Wordle Difficulty Rating:804
Problem Chef invented a modified wordle. There is a hidden word � S and a guess word � T , both of length 5 5 . Chef defines a string � M to determine the correctness of the guess word. For the � � ℎ i t h index: If the guess at the � � ℎ i t h index is correct, the � � ℎ i t h character of � M is G G . If the guess at the � � ℎ i t h index is wrong, the � � ℎ i t h character of � M is B B . Given the hidden word � S and guess � T , determine string � M . Input Format First line will contain � T , number of test cases. Then the test cases follow. Each test case contains of two lines of input. First line contains the string � S - the hidden word. Second line contains the string � T - the guess word. Output Format For each test case, print the value of string � M . You may print each character...