It is for the door's part, not for the switches'.
You have to enter the first door(counting from left), then the third, then the secend and the second. And after that you will get the code for the switches.
Oooh, make sens