A sales representative plans to visit each of six companies M, N, P, Q, R and S exactly once during the course of one day. She is setting up her schedule for the day according to the following conditions :
(i). She must visit M before N and R.
(ii). She must visit N before Q.
(iii). The third company she visits must be P.
If the sales representative visits Q immediately before R and immediately after S, she must visit Q :
If Q is visited just before R and immediately after S, the order followed will be M N S Q R. Since P must be in 3rd place, so we have M N P S Q R i.e., Q will be visited fifth.