Pressing the right combination of coloured buttons will open the locked door. I'm guessing that the "riddle" involves getting the correct combination.