As per the given information,
V lives on the 6th numbered floor of the building. Four people live between J and G, who lives on the odd numbered floor of the building.
Case I
| Floor No. | Person Name |
| 8 | J |
| 7 | |
| 6 | V |
| 5 | |
| 4 | |
| 3 | G |
| 2 | |
| 1 | |
Case II
| Floor No. | Person Name |
| 8 | |
| 7 | G |
| 6 | V |
| 5 | |
| 4 | |
| 3 | |
| 2 | J |
| 1 | |
B is living on the floor which is a perfect square number. N is living above D but below G. N lives on the even numbered floor. There are three floors in between D's floor and C's floor. So, we will eliminate Case II and continue with Case I.
Case I
| Floor No. | Person Name |
| 8 | J |
| 7 | |
| 6 | V |
| 5 | C |
| 4 | B |
| 3 | G |
| 2 | N |
| 1 | D |
So, H lives on the 7th numbered floor of the building.
| Floor No. | Person Name |
| 8 | J |
| 7 | H |
| 6 | V |
| 5 | C |
| 4 | B |
| 3 | G |
| 2 | N |
| 1 | D |
Hence, this is the final arrangement.
As per the above arrangement, four people C, B, G and N are living between V and D.