
Consider the moves of the Rubick's cube as follows.
R -- Flip the right face in clockwise direction
Ri -- Flip the right face in anticlockwise direction
D -- Flip the down face in clockwise direction
Di -- Flip the down face in anticlockwise direction
F -- Flip the front face in clockwise direction
Fi -- Flip the front face in anticlockwise direction
U -- Flip the up face in clockwise direction
Ui -- Flip the up face in anticlockwise direction
Now consider the topmost, rightmost, and frontmost piece call it piece FTR.
I will do following moves
Ri Di R D - 6 times
R U Ri U R U U Ri - 6 times
U R Ui Li U Ri Ui L - 3 times
What will be the final position of the piece FTR after everything is done.
Four switches can be turned on or off. One is the light switch for the incandescent overhead light in the next room, which is initially off, but you don't know which. The other three switches do nothing. From the room with the switches in it, you can't see whether the light in the next room is turned on or off. You may flip the switches as often and as many times as you like, but once you enter the next room to check on the light, you must be able to say which switch controls the light without flipping the switches any further. (And you can't open the door without entering, either!) How can you determine which switch controls the light?