A mind-bending puzzle that took three years to solve finally reveals its clever secret.