Cut The Buttons

A logic puzzle by Alex Makes.