Marty is stuck in the past and wants to get back to his own 1985. He has already made his parents fall in love with each other, and he has found plutonium. All that is left is to start the time machine and begin the trip. One problem remains. Starting the time machine requires a secret code, and only Doc knows that code. Marty knows just two things about it: it is made of several different characters, and he knows its length. While he waits for Doc, he guesses the code by entering different combinations of characters.
Doc has come back and entered the correct code. Marty wants to know how close his guesses were. For each of Marty's attempts, find the number of characters that belong to the code and stand in the correct position, and the number of characters that belong to the code but stand in a wrong position.