$Amar$ wants any one of $R,S$ or $Q$ room. Since $R$ is not alloted to anyone so Amar will get room $R$.
Now $Amar$ will leave room $P$ and would go to room $R$
$Name$ |
Amar |
Akbar |
Anthony |
Ajit |
$Room$ $Alloted$ |
R |
|
|
|
$Anthony$ wants room $P$ and room $P$ is available now so he will be allocated room $P$ as nobody else wants that room.
Name |
Amar |
Akbar |
Anthony |
Ajit |
Room Alloted |
R |
|
P |
|
Now $Anthony$ will leave room $Q$ and would go to room $P$
$Ajit$ wants room $Q$ or $R$ and room $Q$ is available now so he will be allocated room $Q$ as no other senior wants that room.
$Name$ |
Amar |
Akbar |
Anthony |
Ajit |
$Room$ $Alloted$ |
R |
|
P |
Q |
Now $Ajit$ will leave room $S$ and would go to room $Q$
At last $Akbar$ wants room $S$ and room $S$ is available now so he will be allocated room $S$.
$Name$ |
Amar |
Akbar |
Anthony |
Ajit |
$Room$ $Alloted$ |
R |
S |
P |
Q |
$\therefore$ Option B. $Q$ is the correct answer.