added my (Ruchir's) version of program to solve the toggling doors gameshow problem