A new TV game show requires contestants to deduce a five letter word based on hints obtained by guessing other five letter words. The way the game is played is as follows: a secret five letter word is selected by the production staff of the game show. The object of the game is for the contestant to guess the secret word. The first letter of the secret word is revealed. The contestant will then guess a five letter word that may match the secret word. A computer then provides feedback to the contestant on the accuracy of the guess. Feedback consists of a report indicating if any letters in the guessed word are correct and in the same position in the secret word, if any letters in the guessed word are correct but not in the correct position in the secret word, and any letters in the guessed word that do not appear in the secret word.
As an example, the production staff chooses the secret word: "HELLO". The contestant is told the first letter of the word is "H". The contestant then guesses what the word could be, knowing it begins with the letter "H". Let's say the contestant guesses the word: "HOLES". The game show computer would report that the "H" and "L" are in the secret word and in the correct position. In addition, the "O" and "E" are in the secret word, but in the incorrect position, and the "S" is not in the secret word. This is conveyed to the contestant by a single line report:
HoLe.
The upper case letters ("H" and "L") indicate correct letter and position. The lower case letters ("o" and "e") indicate correct letter, wrong position. The period (".") indicates a wrong letter (not in the secret word).
You will write a program that evaluates the contestant guesses, and prints out the single line report for each guess.If the contestant guesses the secret word exactly, then the five capital letters of the secret word will be displayed in the report.