Dear student
Fix the position of A, then B can be sit in 10 positions, so total possible outcome = 10
Now, exactly 4 persons are sitting between them. This can be done in two ways as shown in figure, so favourable outcomes = 2
So, probability = 2/10 = 1/5
Regards
Arun (askIITians forum expert)