An arduino code play Mario song in loop, push a button will trigger an interrupt result in sound of hitting coin, you need to include a Arduino library called Tone