In substitution type of questions, some particular objects are assigned code names. Then a question is asked that is to be answered in the code language.
If room is called bed, bed is called window, window is called flower and flower is called cooler, on what would a man sleep ?
A man sleep on a 'bed' and as given, 'bed' is called 'window'.
So, the man will sleep on the 'window'.