Let's draw confirm conditions first:
Seven friends- Tina, Uday, Vishal, Ajay, Mihir, Rishit and Jyoti.
They belong to seven different cities, viz Jaipur, Nainital, Chandigarh, Kolkata, Lucknow, Raipur and Dehradun.
They all like four different flavours of ice-cream, viz Chocolate, Pista, Kesar and Pineapple.
At least one person likes one flavour but not more than two like the same flavour.
● Ajay likes Pineapple. Mihir likes Pineapple and belongs to Dehradun.
● Rishit belongs to Chandigarh and is the only person who likes Kesar flavour.
● The one who belongs to Kolkata does not like Chocolate.
● Vishal likes Pista and Jyoti does not belong to Dehradun.
● The one who belongs to Kolkata likes the ice-cream which is liked by the one who belongs to Jaipur.
● The one who belongs to Lucknow likes Pineapple.
● Tina likes Chocolate. Uday belongs neither to Nanital nor to Jaipur.
● The one who belongs to Raipur likes Chocolate.
● The one who belongs to Nanital likes the same Ice-cream which is liked by Tina.
● Vishal does not belong to Lucknow.
After putting all the confirm conditions at their places we get:
| Person |
City |
Ice-cream |
| Tina |
Raipur |
Chocolate |
| Uday |
Kanpur |
Kesar |
| Vishal |
Kolkata |
Pista |
| Ajay |
Lucknow |
Pineapple |
| Mihir |
Dehradun |
Pineapple |
| Rishit |
Chandigarh |
Kesar |
| Jyoti |
Jaipur |
Pista |
| Brijesh |
Nanital |
Chocolate |