B, who belongs to China, lives to the immediate west of F, who belongs to Egypt and both of them live on the same floor.
Neither F nor the person who belongs to Nepal lives in Flat Z.
Only one floor is between F and H, who lives in the same flat as F.
Case 1-
Floor | Flat X | Flat Y | Flat Z |
| Person | Country | Person | Country | Person | Country |
3 | | | H | | | |
2 | | | | | | |
1 | B | China | F | Egypt | | |
Case 2-
Floor | Flat X | Flat Y | Flat Z |
| Person | Country | Person | Country | Person | Country |
3 | B | China | F | Egypt | | |
2 | | | | | | |
1 | | | H | | | |
H lives immediately west of the person who belongs to France and both of them live on the same floor.
Case 1-
Floor | Flat X | Flat Y | Flat Z |
| Person | Country | Person | Country | Person | Country |
3 | | | H | | | France |
2 | | | | | | |
1 | B | China | F | Egypt | | |
Case 2-
Floor | Flat X | Flat Y | Flat Z |
| Person | Country | Person | Country | Person | Country |
3 | B | China | F | Egypt | | |
2 | | | | | | |
1 | | | H | | | France |
A, who belongs to Italy lives immediately below I and immediately above E.
A, I and E live in the same flat.
Case 1-
Floor | Flat X | Flat Y | Flat Z |
| Person | Country | Person | Country | Person | Country |
3 | | | H | | I | France |
2 | | | | | A | Italy |
1 | B | China | F | Egypt | E | |
Case 2-
Floor | Flat X | Flat Y | Flat Z |
| Person | Country | Person | Country | Person | Country |
3 | B | China | F | Egypt | I | |
2 | | | | | A | Italy |
1 | | | H | | E | France |
C lives immediately to the east of D and both of them live on the same floor.
Case 1-
Floor | Flat X | Flat Y | Flat Z |
| Person | Country | Person | Country | Person | Country |
3 | | | H | | I | France |
2 | D | | C | | A | Italy |
1 | B | China | F | Egypt | E | |
Case 2-
Floor | Flat X | Flat Y | Flat Z |
| Person | Country | Person | Country | Person | Country |
3 | B | China | F | Egypt | I | |
2 | D | | C | | A | Italy |
1 | | | H | | E | France |
The one who belongs to India lives immediately below the one who belongs to Germany and both of them live in the same flat but not flat Y.
D does not belong to India.
Thus, Case 1 gets cancelled.
Case 2-
Floor | Flat X | Flat Y | Flat Z |
| Person | Country | Person | Country | Person | Country |
3 | B | China | F | Egypt | I | |
2 | D | Germany | C | | A | Italy |
1 | | India | H | | E | France |
The one who belongs to Nepal lives immediately above the one who belongs to Austria.
Neither F nor the person who belongs to Nepal lives in Flat Z.
Floor | Flat X | Flat Y | Flat Z |
| Person | Country | Person | Country | Person | Country |
3 | B | China | F | Egypt | I | |
2 | D | Germany | C | Nepal | A | Italy |
1 | | India | H | Austria | E | France |
Now, only G is remaining.
Floor | Flat X | Flat Y | Flat Z |
| Person | Country | Person | Country | Person | Country |
3 | B | China | F | Egypt | I | Japan |
2 | D | Germany | C | Nepal | A | Italy |
1 | G | India | H | Austria | E | France |
This is the final arrangement.
I belong to Japan.