Game & Watch Flagman
From the Super Mario Wiki
The objective is to watch how the character shows the numbers. The player should repeat what he did by tapping on the spots on the character's's flags or feet. The player must score 20 points or more to clear the microgame.