After entering a password for an online bank account, a user must also enter a code that is sent to the user's phone via text message.

Yellow|Black|Green|Green|Red|Yellow|Black|Black|Yellow|Black(start here)

The following algorithm indicates how the game is played. The game continues until the game is either won by landing on the red space or lost when the piece moves off either end of the board.
Step 1:Place a game piece on a space that is not red and set a counter to 0.Step 2:If the game piece is on a yellow space, move the game piece 3 positions to the left and go to step 3. Otherwise, if the game piece is on a black space, move the game piece 1 position to the left and go to step 3. Otherwise, if the game piece is on a green space, move the game piece 2 positions to the right and go to step 3.Step 3:Increase the value of the counter by 1.Step 4:If game piece is on the red space or moved off the end of the game board, the game is complete. Otherwise, go back to step 2.
If a game is begun by placing the game piece on the rightmost black space for step 1, what will be the value of the counter at the end of the game?"



The game begins by placing the game piece on the rightmost black space for step 1. What will be the value of the counter at the end of the game?

A) 8
B) 9
C) 10
D) 11