Seven persons J, K, L, M, N, O and P visit a tourist places one after the other, but not necessarily in the same order.
Atleast three persons visit after K.
| Case 1 | Case 2 | Case 3 | Case 4 |
Sr. no | Persons | Persons | Persons | Persons |
1 | | | | K |
2 | | | K | |
3 | | K | | |
4 | K | | | |
5 | | | | |
6 | | | | |
7 | | | | |
One person visits between K and O.
O visits immediate before J. J visits immediate before P. Thus, case 1 is invalid.
| Case 2 | Case 3 | Case 4 |
Sr. no | Persons | Persons | Persons |
1 | | | K |
2 | | K | |
3 | K | | O |
4 | | O | J |
5 | O | J | P |
6 | J | P | |
7 | P | | |
Two persons visit between M and O, who visits before N. Thus, case 2 is invalid.
| Case 3 | Case 4 |
Sr. no | Persons | Persons |
1 | M | K |
2 | K | |
3 | | O |
4 | O | J |
5 | J | P |
6 | P | M |
7 | N | N |
L visits after M. Thus, case 4 is invalid.
Therefore, the final arrangement is:
Sr. no | Persons |
1 | M |
2 | K |
3 | L |
4 | O |
5 | J |
6 | P |
7 | N |
K visits immediate after M.