Seven security guards- J, K, L, M, N, O and P were deployed for duty at the Rashtrapati Bhavan on different days of the week, starting from Monday to Sunday. 
K was deployed immediate before P and immediate after M. 
Neither M nor K was deployed on Monday and Thursday.
|  | Case 1 | Case 2 | 
| Days | Guards | Guards | 
| Monday |  |  | 
| Tuesday | M |  | 
| Wednesday | K |  | 
| Thursday | P |  | 
| Friday |  | M | 
| Saturday |  | K | 
| Sunday |  | P | 
Two guards were deployed between J and O. 
Thus, case 1 is invalid. 
|  | Case 2 | 
| Days | Guards | 
| Monday | J/O | 
| Tuesday |  | 
| Wednesday |  | 
| Thursday | J/O | 
| Friday | M | 
| Saturday | K | 
| Sunday | P | 
Neither N nor O was deployed after L.
Therefore, the final arrangement is: 
| Days | Guards | 
| Monday | O | 
| Tuesday | N | 
| Wednesday | L | 
| Thursday | J | 
| Friday | M | 
| Saturday | K | 
| Sunday | P | 
L was deployed immediate after N.