Verify mobile number to view the solution
Solutions
Persons: A, B, C, D, E, F, G and H
Steps:
1) Five persons live between A and B.
2) G lives below B.

3) As many persons live between A and F as between B and F.
4) Only three persons live between G and F.
5) G lives below B. It means Case 3 is ruled out.

6) More than three persons live between D and B.
7) H lives immediately above C.

8) E does not live on the 4th floor. It means Case 2 is ruled out.

Clearly, F is related to H following the same pattern.