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