Button Sequencing

Hey I’m trying to build a system like this (with the player running around hitting buttons in a certain order and resetting on fail) and am fairly new. Could you go over this array approach quickly? The image you uploaded is broken it seems.