Six friends to a Cyber Café. They are to be accommodated in a row of nine room, each to a room. A, E and F do not want to be in a room at the end of the row. B and A must not have anybody adjacent to their rooms. There is only an empty room between A and E.C is adjacent to both G and F, E is next to the room at the beginning.
What is the maximum number of consecutive rooms that are occupied?
Explanation:

room no. 2,3,4,4 are consecutive rooms, which are occupied, Hence, option 4 is the correct answer.