Common solution:
A circular building has seven windows - A, B, C, D, E, F and G, but not necessarily in the same order.
Window D is adjacent to windows A and G.
There is one window between window F and window G.

There are three windows between window B and window C.
Neither window C nor window E is adjacent to window A.

Not more than two windows are between windows D and F, when counted in the clockwise direction from window D.
Thus, case 2 is invalid.
Therefore, the final arrangement is:

There is only one window between window B and window D, when counted in the clockwise direction from window B.
There is only one window between window C and window E, when counted in the clockwise direction from window C.
There is only one window between window F and window B, when counted in the clockwise direction from window F.