Light Five Lamps!
From the Super Mario Wiki
Light Five Lamps! is a minigame found in Mario & Sonic at the Olympic Winter Games. To gain access to it, the player has to get Yoshi join his or her team. In Sparkleton, Mario and company will find a close gate. Close by, there is a series of five buttons. However, only Yoshi can reach them by using his long tongue. So if he's in the team and Mario or Sonic visits this place, the minigame starts.
The minigame starts with five buttons and five lamps on the wall. Yoshi has to hit a button when it's glowing, to light a lamp. He has to keep doing so until all of the buttons are hit, and all the lamps are lighten, so the gate will open.
Press the glowing buttons to light lamps. Learn the pattern and get all 5 lamps lit!