Six people - Komal, Lavit, Kesh, Piya, Avnit and Nisha live in a three-storey building.
The bottommost floor is numbered as 1, the floor above it as 2, and the topmost floor as 3. Each floor consists of two flats - Flat A and Flat B.
Flat B is towards the east of Flat A, on each floor.
Piya lives on the floor between the floors of Komal and Lavit.
Kesh lives in flat B and above Piya.
Komal and Lavit live in the same type of flat.
| Case 1 | | Case 2 | |
Floor 3 | Komal | Kesh | Komal | Kesh |
Floor 2 | Piya | | | Piya |
Floor 1 | Lavit | | Lavit | |
| Flat A | Flat B | Flat A | Flat B |
Komal and Lavit live in the same type of flat but not as same as Piya.
Thus, case 1 is invalid.
| Case 2 | |
Floor 3 | Komal | Kesh |
Floor 2 | | Piya |
Floor 1 | Lavit | |
| Flat A | Flat B |
Nisha lives on the floor below neither Lavit nor Piya.
Floor 3 | Komal | Kesh |
Floor 2 | Nisha | Piya |
Floor 1 | Lavit | |
| Flat A | Flat B |
Therefore, the final arrangement is:
Floor 3 | Komal | Kesh |
Floor 2 | Nisha | Piya |
Floor 1 | Lavit | Avnit |
| Flat A | Flat B |
Except (e), in all other options, both mentioned persons live on the adjacent floors but in different flats.
There is one floor between Kesh and Avnit and both live in the same type of flat.