"There is two rooms one has three light bulbs in it the other has three switches you are only allowed in the first room once you start in the second, how do you find out which switch operates which bulb?"

The Same solution works for it.

one of the bulb will be ON - the last one switched ON.
one of them will be warm and OFF - the first one swiched ON and then OFF.
the last one will be cool and OFF- the untouched one.

KALAM