Study the Information below to answer the questions.
Seven friends namely Anand, Dedphk, Varun’ Ujjawal, Pritam, kadir and Jasmeet live in three different buildings namely Ashiana. Top-Hill and Ridge. Each person is flying a kite of his choice with a different colour like red, green, blue, white, black, yellow, and pink, not necessarily in that order.
* Kadir is flying a pink kite and lives in the same building where Jasmeet stays, i.e., “Ashiana’.
* Varun is flying a black kite and does not live in Ridge building.
* Ujjawal does not live in the same building where Anand or Pritam are living and is flying a Yellow coloured kite.
* Deepak lives in Ridge building with one more person and is flying a green kite.
* None living in Top-Hill building flies a white kite.
* Only two persons are staying in Ridge building while three of them are staying in Top-Hill building.
* Pritam does not fly a blue kite and stays in Top-Hill.
Representation: Name, Colour, Building
We know that two people live Ashiana, three in top hill, and two in ridge.
From the conditions, we can conclude:
Kadir-Pink-Ashiana
Jashmeet-_-Ashiana
Varun-Black-Ashiana/Top hill
Ujjwal-Yellow-_
Deepak-Green-Ridge
Pritam-_-Top hill
Anand-_-_
Now, all the Ashiana slots are taken, hence, Varun shall stay in top hill.
Hence, it is Varun-black-top hill
We are left with One top hill, and one ridge. In colours, we have Blue, white, and red.
It is given that Pritam does not fly blue kite and none of the persons staying in top hill fly white kite. Hence, Pritam shall fly red kite.
Now, it is Pritam-Red-Top hill
We know that Ujjwal stays in a building different from Anand and Pritam. Hence, he shall live in Ridge/Ashiana. Since Ashiana slots are full, Ujjwal shall take Ridge (Ujjwal-Yellow-Ridge).
Now, it is clear that Anand will live in top hill (since all other slots are full). Further, no one in top hill can fly white kite, which means Anand shall have blue kite.
hence, Anand-Blue-top hill.
In the end, for jashmeet, we only have white kite.
Hence, Jashmeet-White-Ashiana.
From this, we know Deepak and Ujjwal stay in Ridge building.